CSS of outline
The outline is a line. Pay attention to the surrounding factors and make the content "stand out" outside China ".
Elements surrounding the outline of the CSS attribute set of the outline. You can specify the style, color, and width outlines.
Note: outline does not take action space, they do not have to be rectangular.
Browser support: IE browser: in Internet Explorer, female: Firefox, positive: Wangjing.
W3C: displays in the W3C column of the number, where the property recommended by CSS is (CSS1 or CSS2 ).
<Html>
<Head>
<Style type = "text/css">
P
{
Border: red solid thin;
Outline: green dotted thick
}
</Style>
</Head>
<Body>
<P> Some text. </p>
</Body>
</Html>
Outline |
A shorthand property for setting all the outline properties in one declaration |
Outline-color Outline-style Outline-width |
- |
1.5 |
- |
2 |
Outline-color |
Sets the color of the outline around an element |
Color Invert |
- |
1.5 |
- |
2 |
Outline-style |
Sets the style of the outline around an element |
None Dotted Dashed Solid Double Groove Ridge Inset Outset |
- |
1.5 |
- |
2 |
Outline-width |
Sets the width of the outline around an element |
Thin Medium Thick Length |
- |
1.5 |
- |
2 |