使用 CSS 将轮廓样式设置为槽状


要将轮廓样式设置为槽状,可以使用 outline-style 属性,其值为 groove。在 groove 下,轮廓看起来就像刻到页面上。− 

示例

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

更新于: 2020-03-04

168 次浏览

开启你的 职业生涯

完成课程获取认证

立即开始
广告
© . All rights reserved.