使用 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>

更新日期: 31-Jan-2020

2K+ 浏览

开启你的 职业生涯

完成课程获得认证

开始
广告