使用 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.