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.
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.
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>
Effect:
[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!