Home > Web Front-end > CSS Tutorial > What is CSS outline?

What is CSS outline?

(*-*)浩
Release: 2019-12-25 15:18:22
Original
4686 people have browsed it

What is CSS outline?

The outline is a line drawn around an element, located outside the edge of the border, which can highlight the element.

The outline attribute specifies the style, color, and width of the element's outline. (Recommended learning: CSS tutorial )

# CSS contour (outline)

(outline) is a piece drawn around the element Lines, located on the periphery of the border edge, serve to highlight elements.

The CSS outline property specifies the style, color, and width of an element's outline.

What is CSS outline?

#This example demonstrates using the outline attribute to draw a line around an element.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title>菜鸟教程(runoob.com)</title> 
<style>
p 
{
	border:1px solid red;
	outline:green dotted thick;
}
</style>
</head>

<body>
<p><b>注意:</b> 如果只有一个 !DOCTYP E指定 IE8 支持 outline 属性。</p>
</body>
</html>
Copy after login

The above is the detailed content of What is CSS outline?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template