Home  >  Article  >  Web Front-end  >  What is the css stroke attribute?

What is the css stroke attribute?

藏色散人
藏色散人Original
2020-11-20 11:34:383526browse

css stroke attribute refers to the border-style attribute, which is used to set the style of all borders of an element, or to set the border style for each side individually. The code syntax is such as "border-style: dotted solid double dashed ;".

What is the css stroke attribute?

Recommendation: "css video tutorial"

border-style attribute is used to set Style the entire border of an element, or set the border style for each side individually.

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

Example 1

border-style:dotted solid double dashed;

The upper border is dotted

The right border is a solid line

The lower border is a double line

The left border It is a dotted line

Example 2

border-style:dotted solid double;

The upper border is dotted

The right border and left border are solid lines

The lower border is a double line

Example 3

border-style:dotted solid;

The upper and lower borders are dotted

The right and left borders are solid lines

Example 4

border-style:dotted;

All The 4 borders are dotted

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

Statement:
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