สไตล์borderImageWidthคุณสมบัติ
ตัวอย่าง
ระบุความกว้างของขอบภาพ:
document.getElementById("myDIV").style.borderImageWidth = "20px 30px";
ความหมายและการใช้งาน
borderImageWidth คุณสมบัติระบุความกว้างของขอบภาพ
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนคุณสมบัติอย่างสมบูรณ์
Property | |||||
---|---|---|---|---|---|
borderImageWidth | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
ดู คุณสมบัติ borderImageแทน!
ไวยากรณ์
ส่งคืนคุณสมบัติ borderImageWidth:
object.style.borderImageWidth
ตั้งค่าคุณสมบัติ borderImageWidth:
object.style.borderImageWidth = "number|%|auto|initial|inherit"
มูลค่าทรัพย์สิน
Value | Description |
---|---|
length | A length unit (px) specifying the size of the border-width |
number | Default value 1. Represents multiples of the corresponding border-width |
% | Refers to the size of the border image area: the width of the area for horizontal offsets, the height for vertical offsets |
auto | If specified, the width is the intrinsic width or height of the corresponding image slice |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
รายละเอียดทางเทคนิค
ค่าเริ่มต้น: | 1 |
---|---|
คืนมูลค่า: | สตริงที่แสดงถึงคุณสมบัติ border-image-width ขององค์ประกอบ |
เวอร์ชัน CSS | CSS3 |
หน้าที่เกี่ยวข้อง
การอ้างอิง CSS: border-image-width คุณสมบัติ