首頁  >  文章  >  web前端  >  使用 CSS 設定輪廓寬度

使用 CSS 設定輪廓寬度

王林
王林轉載
2023-09-03 13:33:081213瀏覽

使用 CSS 设置轮廓宽度

outline-width屬性用來設定輪廓的寬度。它的值應該是一個長度或值之一 thin, medium, or thick,就像border-width屬性一樣。

範例

<html>
   <head>
   </head>
   <body>
      <p style = "outline-width:thin; outline-style:solid;">
         This text is having thin outline.
      </p>
      <br />
      <p style = "outline-width:thick; outline-style:dashed;">
         This text is having thick outline.
      </p>
      <br />
      <p style = "outline-width:5px; outline-style:dotted;">
         This text is having 5x outline.
      </p>
   </body>
</html>
#

以上是使用 CSS 設定輪廓寬度的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:tutorialspoint.com。如有侵權,請聯絡admin@php.cn刪除