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

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

要将轮廓样式设置为脊线,请使用 outline-style 属性,并将值设置为 ridge。在凹槽样式下,轮廓看起来像是刻在页面上的。使用 ridge  值则相反。

示例

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

相关文章


有用资源