使用 CSS 设置边框的虚线

javascriptweb developmentfront end scripts

要设置边框的虚线,请使用 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>

相关文章