border-image-width 属性用于通过 CSS 设置边框图像宽度。

示例

您可以尝试运行以下命令实现 border-image-width 属性的代码 -

现场演示

<html>
   <head>
      <style>
         #borderimg1 {
            border: 15px solid transparent;
            padding: 15px;
            border-image-source: url(https://tutorialspoint.com/css/images/border.png);
            border-image-repeat: round;
            border-image-slice: 40;
            border-image-width: 20px;
         }
      </style>
   </head>
   <body>
      <p id = borderimg1>This is image border example.</p>
   </body>
</html>

以上就是使用 CSS 设置边框图像宽度的详细内容,更多请关注双恒网络其它相关文章!

简简单单挺好的

联系我们 订单查询