CSS outline properties
Attribute definitions and instructions
outline (contour) is plotted on a line surrounding elements, located in the periphery of the border edge, can play a prominent role element.
outline shorthand property for all the outline properties in one declaration.
Properties you can set are (in order): outline-color, outline-style, outline-width
If you do not set a value which will not go wrong, such as outline: solid # ff0000; also permitted.
Defaults: | invert none medium |
---|---|
inherit: | no |
version: | CSS2 |
JavaScript syntax: | object .style.outline = "# 0000FF dotted thin" |
Browser Support
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
outline | 1.0 | 8.0 | 1.5 | 1.2 | 7.0 |
Property Value
value | description |
---|---|
outline-color | Predetermined color of the border. See: Outline-Color of possible values. |
outline-style | Provisions border style. See: Outline-style for possible values. |
outline-width | Predetermined width of the border. See: Outline-width of the possible values. |
inherit | Set the outline provisions should inherit properties from the parent element. |
related articles
CSS tutorial: CSS Outline