css outline-width property


  Translation results:

outline

English [ˈaʊtlaɪn] American [ˈaʊtˌlaɪn]

n. Outline, outline, outline, draft, key points, main principles; appearance, Outline, contour line, outline drawing method, sketch (drawing method)

vt. Overview; outline; outline, sketch, outline

Third person singular: outlines Plural: outlines Now Participle: outlining Past tense: outlined Past participle: outlined

##width

UK[wɪdθ] US[wɪdθ, wɪθ, wɪtθ]

n. Width; breadth

Plural: widths

css outline-width propertysyntax

Function:Set the width of the entire outline of the element.

Note: This width will only work if the outline style is not none. If the style is none, the width is actually reset to 0. Negative length values ​​are not allowed.

Note: Always declare the outline-style attribute before the outline-width attribute. The color of an element's outline can only be changed after it has obtained its outline. Contours do not take up space and are not necessarily rectangular.

css outline-width propertyexample

<!DOCTYPE>
<html>
<head>
<style type="text/css">
p.one
{
border:red solid thin;
outline-style:solid;
outline-width:thin;
}
p.two
{
border:red solid thin;
outline-style:dotted;
outline-width:3px;
}
</style>
</head>
<body>

<p class="one">This is some text in a paragraph.</p>
<p class="two">This is some text in a paragraph.</p>

<p><b>注释:</b>只有在规定了 !DOCTYPE 时,Internet Explorer 8 (以及更高版本) 才支持 outline-width 属性。</p>
</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

Home

Videos

Q&A