Thuộc tính kiểu đường viền bên phải CSS
Thêm ví dụ "Hãy tự mình thử" bên dưới.
Định nghĩa và cách sử dụng
Thuộc tính border-right-style
thiết lập kiểu đường viền bên phải của phần tử.
Giá trị mặc định: | không có |
---|---|
Thừa hưởng: | KHÔNG |
Hoạt hình: | KHÔNG. Đọc về hoạt hình |
Phiên bản: | CSS1 |
Cú pháp JavaScript: | object .style.borderRightStyle="dotted" Hãy thử nó |
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 | |||||
---|---|---|---|---|---|
border-right-style | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Cú pháp CSS
border-right-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
Giá trị tài sản
Value | Description | Demo |
---|---|---|
none | Specifies no border. This is default | Demo ❯ |
hidden | The same as "none", except in border conflict resolution for table elements | Demo ❯ |
dotted | Specifies a dotted border | Demo ❯ |
dashed | Specifies a dashed border | Demo ❯ |
solid | Specifies a solid border | Demo ❯ |
double | Specifies a double border | Demo ❯ |
groove | Specifies a 3D grooved border. The effect depends on the border-color value | Demo ❯ |
ridge | Specifies a 3D ridged border. The effect depends on the border-color value | Demo ❯ |
inset | Specifies a 3D inset border. The effect depends on the border-color value | Demo ❯ |
outset | Specifies a 3D outset border. The effect depends on the border-color value | Demo ❯ |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Thêm ví dụ
Ví dụ
Một đường viền bên phải có rãnh:
div {
border-right-style: groove;
border-right-color: coral;
border-right-width: 7px;
}
Hãy tự mình thử »Ví dụ
Một đường viền bên phải sườn núi:
div {
border-right-style: ridge;
border-right-color: coral;
border-right-width: 7px;
}
Hãy tự mình thử »Ví dụ
Một đường viền bên phải bên trong:
div {
border-right-style: inset;
border-right-color: coral;
border-right-width: 7px;
}
Hãy tự mình thử »Ví dụ
Đường viền bên phải đầu tiên:
div {
border-right-style: outset;
border-right-color: coral;
border-right-width: 7px;
}
Hãy tự mình thử »Trang liên quan
Hướng dẫn CSS: Đường viền CSS
Tham chiếu CSS: thuộc tính border-right
Tham chiếu DOM HTML: thuộc tính borderRightStyle