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