使用CSS将轮廓样式设置为虚线

要将轮廓样式设置为虚线,请使用Outlined-style属性,其值应为点划线

示例

<html>
   <head>
   </head>
   <body>
      <p style = "outline-width:7px;outline-style:dotted;">
         This text is having 7px dotted outline.
      </p>
   </body>
</html>