Thuộc tính kiểu đường viền dưới cùng của 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-bottom-style
thiết lập kiểu đường viền dưới cùng 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.borderBottomStyle="dotted" Hãy dùng thử |
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-bottom-style | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
Cú pháp CSS
border-bottom-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ụ
Đường viền dưới có rãnh:
div {
border-bottom-style: groove;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Hãy tự mình thử »Ví dụ
Đường viền dưới sườn núi:
div {
border-bottom-style: ridge;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Hãy tự mình thử »Ví dụ
Một đường viền dưới cùng bên trong:
div {
border-bottom-style: inset;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Hãy tự mình thử »Ví dụ
Đường viền dưới cùng ban đầu:
div {
border-bottom-style: outset;
border-bottom-color: coral;
border-bottom-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 viền dưới
Tham chiếu DOM HTML: thuộc tính borderBottomStyle