用 CSS 將邊框樣式設定為筋紋


要將邊框樣式設定為筋紋,請將 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>

更新日期:2020 年 3 月 4 日

173 次瀏覽

開啟您的 職業

完成課程,獲得認證

開始學習
廣告
© . All rights reserved.