使用 CSS 设置边框虚线
为了为边框设置虚线,使用<em>border-style</em>属性。可以尝试运行以下代码来实现将<em>border-style</em>属性值 dashed 来设置虚线边框
示例
<html> <head> </head> <body> <p style = "border-width:3px; border-style:dashed;"> This is a dotted border. </p> </body> </html>
广告
为了为边框设置虚线,使用<em>border-style</em>属性。可以尝试运行以下代码来实现将<em>border-style</em>属性值 dashed 来设置虚线边框
<html> <head> </head> <body> <p style = "border-width:3px; border-style:dashed;"> This is a dotted border. </p> </body> </html>