使用 CSS 更改頂部邊框的樣式


border-top-style 屬性更改頂部邊框的樣式。

示例

嘗試執行以下屬性以更改頂部邊框的樣式

<html>
   <head>
   </head>
   <body>
      <p style = "border-width:2px; border-top-style:solid;">
         Example showing top border
      </p>
   </body>
</html>

更新於:31-01-2020

101 次瀏覽

開啟你的職業生涯

完成課程即可獲得認證

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