Chú thích kiểu bên cạnh Thuộc tính
Thí dụ
Di chuyển chú thích bảng xuống cuối bảng:
document.getElementById("myCap").style.captionSide = "bottom";
Định nghĩa và Cách sử dụng
Thuộc tính captionSide đặt hoặc trả về vị trí của chú thích bảng.
Hỗ trợ trình duyệt
Property | |||||
---|---|---|---|---|---|
captionSide | Yes | 9.0 | Yes | Yes | Yes |
Cú pháp
Trả lại thuộc tính captionSide:
object.style.captionSide
Đặt thuộc tính captionSide:
object.style.captionSide = "top|bottom|initial|inherit"
Giá trị tài sản
Value | Description |
---|---|
top | Default. Positions the table caption above the table |
bottom | Positions the table caption below the table |
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: | đứng đầu |
---|---|
Giá trị trả lại: | Một chuỗi, đại diện cho vị trí của chú thích bảng |
Phiên bản CSS | CSS2 |
Các ví dụ khác
Thí dụ
Trả lại chú thích bảng:
alert(document.getElementById("myCap").style.captionSide);
Các trang liên quan
Hướng dẫn CSS: Bảng CSS
Tham chiếu CSS: thuộc tính phụ đề
❮ Đối tượng phong cách