How to set solid line in css

藏色散人
Release: 2021-07-27 11:23:59
Original
5625 people have browsed it

How to set solid lines in css: First create an HTML sample file; then set the border through the "p.solid {border-style:solid;}" style setting.

How to set solid line in css

The operating environment of this article: windows7 system, HTML5&&CSS3 version, DELL G3 computer

How to set solid lines in css?

The border-style attribute is used to set the style of all borders of an element, or to set the border style for each side individually.

The border may appear only when this value is not none.

The value solid can define a solid line.

How to set solid line in css

Example of setting a solid line:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title></title> 
<style>

p.solid {border-style:solid;}

</style>
</head>

<body>

<p class="solid">实线边框。</p>

</body>

</html>
Copy after login

Effect:

How to set solid line in css

[Recommended learning: css video tutorial]

The above is the detailed content of How to set solid line in css. 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