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

cssweb developmentfront end technology更新于 2025/8/22 21:32:17

要将轮廓样式设置为单实线,请使用 outline-style 属性,并将值设置为 solid −

示例

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

相关文章


有用资源