สไตล์borderImageRepeatคุณสมบัติ
ตัวอย่าง
ระบุวิธีการทำซ้ำขอบภาพ:
document.getElementById("myDIV").style.borderImageRepeat = "round";
ความหมายและการใช้งาน
ชุดคุณสมบัติ borderImageRepeat ตั้งค่าหรือส่งคืนว่าควรทำซ้ำขอบภาพ ปัดเศษ หรือขยาย
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนคุณสมบัติอย่างสมบูรณ์
Property | |||||
---|---|---|---|---|---|
borderImageRepeat | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
ดู คุณสมบัติ borderImageแทน!
ไวยากรณ์
ส่งคืนคุณสมบัติ borderImageRepeat:
object.style.borderImageRepeat
ตั้งค่าคุณสมบัติ borderImageRepeat:
object.style.borderImageRepeat = "stretch|repeat|round|initial|inherit"
มูลค่าทรัพย์สิน
Value | Description |
---|---|
stretch | Default value. The image is stretched to fill the area |
repeat | The image is tiled (repeated) to fill the area |
round | The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so it fits |
space | The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
รายละเอียดทางเทคนิค
ค่าเริ่มต้น: | ยืด |
---|---|
คืนมูลค่า: | สตริงที่แสดงถึงคุณสมบัติ border-image-repeat ขององค์ประกอบ |
เวอร์ชัน CSS | CSS3 |
หน้าที่เกี่ยวข้อง
การอ้างอิง CSS: border-image-repeat คุณสมบัติ