Thuộc tính kiểu đường viền dưới cùng CSS
Thí dụ
Đặt kiểu cho đường viền dưới cùng:
div {border-bottom-style: dotted;}
Thêm các ví dụ "Hãy tự mình thử" bên dưới.
Định nghĩa và Cách sử dụng
Thuộc border-bottom-style
tính đặt kiểu đường viền dưới cùng của phần tử.
Giá trị mặc định: | không ai |
---|---|
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: | đối tượng .style.borderBottomStyle = "dotted" |
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 | Play it |
---|---|---|
none | Specifies no border. This is default | |
hidden | The same as "none", except in border conflict resolution for table elements | |
dotted | Specifies a dotted border | |
dashed | Specifies a dashed border | |
solid | Specifies a solid border | |
double | Specifies a double border | |
groove | Specifies a 3D grooved border. The effect depends on the border-color value | |
ridge | Specifies a 3D ridged border. The effect depends on the border-color value | |
inset | Specifies a 3D inset border. The effect depends on the border-color value | |
outset | Specifies a 3D outset border. The effect depends on the border-color value | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Các ví dụ khác
Thí dụ
Đường viền dưới gạch ngang:
div {border-bottom-style: dashed;}
Thí dụ
Đường viền dưới chắc chắn:
div {border-bottom-style: solid;}
Thí dụ
Đường viền đôi dưới cùng:
div {border-bottom-style: double;}
Thí dụ
Xóa đường viền dưới cùng:
div {border-bottom-style: none;}
Thí dụ
Đường viền dưới cùng có rãnh:
div {
border-bottom-style: groove;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Thí dụ
Đường viền dưới cùng của sườn núi:
div {
border-bottom-style: ridge;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Thí dụ
Một đường viền dưới cùng trong:
div {
border-bottom-style: inset;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Thí dụ
Đường viền dưới cùng ban đầu:
div {
border-bottom-style: outset;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Các trang liên quan
Hướng dẫn CSS: Đường viền CSS
Tham chiếu CSS: thuộc tính border-bottom
Tham chiếu DOM HTML: thuộc tính borderBottomStyle