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

What is the css stroke attribute?

藏色散人
Release: 2020-11-30 17:04:44
Original
3596 people have browsed it

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;
Copy after login

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;
Copy after login

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;
Copy after login

The upper and lower borders are dotted

The right and left borders are solid lines

Example 4

border-style:dotted;
Copy after login

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!

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