使用 CSS 單個語句設定輪廓的寬度、線條樣式和顏色屬性


輪廓屬性是一個速記屬性,可讓你指定多個屬性的值,如輪廓的寬度、線條樣式和顏色。

範例

<html>
   <head>
   </head>
   <body>
      <p style = "outline:thin solid green;">
         This text is having thin solid freen outline.
      </p>
      <br />
      <p style = "outline:thick dashed #009900;">
         This text is having thick dashed green outline.
      </p>
      <br />
      </p>
   </body>
</html>

更新日期: 2020-03-04

136 次瀏覽

開啟你的 職業 生涯

透過完成課程獲得認證

開始
廣告
© . All rights reserved.