Đường viền kiểu dáng
Thí dụ
Chỉ định độ rộng của đường viền hình ảnh:
document.getElementById("myDIV").style.borderImageWidth = "20px 30px";
Định nghĩa và Cách sử dụng
Thuộc tính borderImageWidth chỉ định độ rộng của đường viền hình ảnh.
Hỗ trợ trình duyệt
Các số trong bảng chỉ định phiên bản trình duyệt đầu tiên hỗ trợ đầy đủ thuộc tính.
Property | |||||
---|---|---|---|---|---|
borderImageWidth | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Thay vào đó, hãy nhìn vào thuộc tính borderImage !
Cú pháp
Trả về thuộc tính borderImageWidth:
object.style.borderImageWidth
Đặt thuộc tính borderImageWidth:
object.style.borderImageWidth = "number|%|auto|initial|inherit"
Giá trị tài sản
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 |
Chi tiết kỹ thuật
Giá trị mặc định: | 1 |
---|---|
Giá trị trả lại: | Một chuỗi, đại diện cho thuộc tính border-image-width của một phần tử |
Phiên bản CSS | CSS3 |
Các trang liên quan
Tham chiếu CSS: thuộc tính border-image-width