CSS border-top-width property
Examples
Settings at the top border width:
p
{
border-style:solid;
border-top-width:15px;
}
{
border-style:solid;
border-top-width:15px;
}
Attribute definitions and instructions
border-top-width property is set to a width of the top border of the element.
Note: Always declare the border-style property before the border-top-width property.Element only after obtaining the border, in order to change the width of the border.
Defaults: | medium |
---|---|
inherit: | no |
version: | CSS1 |
JavaScript syntax: | object object.style.borderTopWidth = "thick" |
Browser Support
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
border-top-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Property Value
value | description |
---|---|
thin | Fine definition of the border. |
medium | Defaults. Defined border medium. |
thick | The definition of crude on the border. |
length | It allows you to customize the width of the border. |
inherit | Provisions should inherit the border width from the parent element. |
related articles
CSS tutorial: CSS Border
CSS Reference: border-Top properties