css outline property


  Translation results:

英[ˈaʊtlaɪn] US[ˈaʊtˌlaɪn]

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

vt. Overview; outline; outline, sketch, sketch

Third person singular: outlines Plural: outlines Present participle: outlining Past tense: outlined Past participle: outlined

css outline propertysyntax

Function: is a line drawn around the element, located outside the edge of the border, which can highlight the element.

Description: outline shorthand attribute sets all outline attributes in one statement. The following properties can be set in order: outline-color, outline-style, outline-width. If you do not set one of the values, there will be no problem. For example, outline:solid #ff0000; is also allowed.

Note: Contour lines do not occupy space and are not necessarily rectangular.

css outline propertyexample

<!DOCTYPE>
<html>
<head>
<style type="text/css">
p 
{
border:red solid thin;
outline:#00ff00 dotted thick;
}
</style>
</head>

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

Run instance »

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


##

Home

Videos

Q&A