CSS border-bottom-width 屬性
更多“自己嘗試”的例子見下文。
定義和用法
border-bottom-width
屬性設定元素底部邊框的寬度。
注意: 始終在 border-bottom-width
屬性之前宣告 border-style 或 border-bottom-style 屬性。在更改寬度之前,元素必須具有邊框。
預設值 | medium |
---|---|
繼承 | no |
可動畫 | 是。 閱讀有關可動畫的內容 嘗試一下 |
版本 | CSS1 |
JavaScript 語法 | object.style.borderBottomWidth="5px" 嘗試一下 |
瀏覽器支援
表中的數字指定了完全支援該屬性的第一個瀏覽器版本。
屬性 | |||||
---|---|---|---|---|---|
border-bottom-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
CSS 語法
border-bottom-width: medium|thin|thick|length|initial|inherit;
屬性值
值 | 描述 | 演示 |
---|---|---|
medium | 指定中等底部邊框。這是預設值 | 演示 ❯ |
thin | 指定細底部邊框 | 演示 ❯ |
thick | 指定粗底部邊框 | 演示 ❯ |
length | 允許您定義底部邊框的厚度。 閱讀長度單位 | 演示 ❯ |
initial | 將此屬性設定為其預設值。閱讀關於initial | |
inherit | 從其父元素繼承此屬性。閱讀關於inherit |
更多示例
相關頁面
CSS 教程:CSS 邊框
CSS 參考:border-bottom 屬性
HTML DOM 參考: borderBottomWidth 屬性