使用 CSS 在兩條線之間設定邊框


使用 double 值的 border-style 屬性設定包含兩條線的邊框。您可以嘗試執行以下程式碼以實現 border-style 屬性

示例

<html>
   <head>
   </head>
   <body>
      <p style = "border-width:4px; border-style:none;">
         This is a border with none width.
      </p>
      <p style = "border-width:4px; border-style:double;">
         This is a border with two solid lines.
      </p>
   </body>
</html>

更新於: 2020-02-03

230 人次瀏覽

啟動您的 職業

完成課程以獲得認證

開始
廣告
© . All rights reserved.