CSS border-bottom property
Examples
Settings at the bottom border style:
p
{
border-style: solid ; Border-bottom: thick dotted # ff0000 ;}
try it"
Tag definitions and instructions
Set all the bottom border properties in one declaration border-bottom shorthand properties.
Properties can be set separately (in order): border-bottom-width, border-bottom-style, and border-bottom-color.
If this value is not the lack of a relationship, such as border-bottom: # FF0000; is permitted
Defaults: | not specified |
---|---|
inherit: | no |
version: | CSS1 |
JavaScript syntax: | object object.style.borderBottom = "3px solid blue" |
Browser Support
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
border-bottom | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Property Values
值 | 描述 |
---|---|
border-bottom-width | 指定底部边框宽度 |
border-bottom-style | 指定底部边框样式 |
border-bottom-color | 指定底部边框颜色 |
inherit | 指定border-bottom 属性值,应该从父元素继承 |
related articles
CSS tutorial: CSS Border