使用 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.