Home > Web Front-end > CSS Tutorial > How to clear css border lines

How to clear css border lines

anonymity
Release: 2019-05-28 13:35:18
Original
11931 people have browsed it

CSS border is the CSS border that controls the object’s border edge width, color, dashed line, solid line and other style CSS properties.

Html table control border:

border="1" bordercolor="#000000"
Copy after login

Description: The width of the control table border is 1px, the css color is black, and the default is a solid style border.

How to clear css border lines

1. Four borders

border-left sets the left border. Generally, use

# to set the left border style separately. ##border-right sets the right border. Generally, use

border-top to set the right border style separately. Use

border-top to set the top border. Generally, use

border-bottom to set the bottom border. Generally, Set the bottom border style separately. Sometimes the bottom border style can be applied as a css underline effect.

2. The abbreviation of border with the same border on four sides

#php{border:1px solid #00F}

Set the php object box 1px pixel blue Solid border

3. Three border styles

Usually we can set the three attributes and parameters of the border: width (thickness), border style, and border color.

1), border color: border-color:#000

2), border thickness (width): border-width:1px

Use numerical units to set the border thickness Width, such as 1px (border thickness width is 1 pixel), the border must be a positive number, a value greater than 0. Otherwise, setting the border style is invalid.

3), border border style: border-style:solid

The border style value is as follows:

none: No border. Independent of any specified border-width value

hidden: Hide the border. IE does not support

dotted: IE4 on the MAC platform and IE5.5 on the WINDOWS and UNIX platforms are dotted lines. Otherwise, it is a solid line (commonly used)

dashed: IE4 on the MAC platform and IE5.5 on the WINDOWS and UNIX platforms are dotted lines. Otherwise, it is a solid line (commonly used)

solid: solid line border (commonly used)

double: double-line border. The sum of two single lines and their interval is equal to the specified border-width value

groove: Draw a 3D groove based on the value of border-color

ridge: Draw a diamond border based on the value of border-color

inset: Draw a 3D concave edge according to the value of border-color

outset: Draw a 3D convex edge according to the value of border-color###

The above is the detailed content of How to clear css border lines. 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