Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

CSS border-image-width - กำหนดความกว้างภาพขอบ


คุณสมบัติ border-image-width ใช้เพื่อกำหนดความกว้างของภาพขอบ ลองรันโค้ดด้านล่างเพื่อใช้งานคุณสมบัติ 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: 50;
        border-image-width: 10px;
      }
    </style>
  </head>
  <body>
    <p id="borderimg1">This is image border example.</p>
  </body>
</html>