Definition and usage of CSS border
This article mainly explains the definition and usage of CSS border. The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn the definition and usage of CSS border.
CSS border abbreviation
Definition and usage
The border shorthand property sets all border properties in one declaration.
You can set the following properties in order:
Border-width border-style border-color
If you do not set one of these values, there will be no problem, such as border:solid # ff0000; is also allowed.
Example
Style the 4 borders:
P {border:5px solid red;}
Browser support
The border property is supported by all browsers.
Note: no version of Internet Explorer (including IE8) supports the attribute value "inherit".
Possible value
Thank you for reading, the above is the content of "the definition and usage of CSS border". After the study of this article, I believe you have a deeper understanding of the definition and usage of CSS border, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!