JavaEE - css border style

Disclaimer: The materials used in this column are written by VIP students of Kaige Academy. Students have the right to remain anonymous and have the right to final interpretation of the article. Kaige Academy aims to promote VIP students to learn from each other based on public notes.

border style

The border property can be used to control the border style of the label, and the size of the border is in px.
Commonly used border line styles:
solid solid line
none borderless line
double double line
dashed dotted line
code example:

image

operation result:

image

mind Mapping:

image

The border can be controlled according to the top, bottom, left and right:
border-top top border
border-bottom bottom border
border-left left border
border-right right border
code example:

image

operation result:

image

mind Mapping:

image

The border can also adjust the radian of the four corners:
border-radius adjusts the radian of the border. The unit can be used to adjust
the border of the photo to a circle in px and % Example:

image

operation result:

image

Example of adjusting the arc of a text box:

image

operation result:

image

You can also adjust the radian for the four corners:
border-bottom-left-radius adjusts the radian in the lower left corner
border-bottom-right-radius adjusts the radian in the lower right corner
border-top-right-radius adjusts the radian in the upper right corner
border-top-left- radius adjusts the radian of the lower right corner

Code example:

image

operation result:

image

Adjust the shadow of the component:
box-shadow can adjust the shadow area of ​​the component, and you can also set the color of the shadow:
code example:

image

operation result:

image

Set the first two values ​​to 0 to achieve a halo-like effect: Code example:

image

operation result:

image

Image border: border-image
Use this property to set the image to the border, and at the end, you can use round or stretch to define the image surrounding or stretching effect.
Code example:

image

operation result:

image

Code example:

image

operation result:

image

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326711630&siteId=291194637
Recommended