A summary of the introduction of background images and borders in CSS

1. In CSS, the url(); method should be used to introduce the background image. The relative path or absolute path of the image is in the parentheses.
                                  A summary of the introduction of background images and borders in CSS-Luchuan-Luchuan's Blog
 
2. When using the border property, you can't just set the width of the border, but set it together with the style. There are three values ​​for the border property: width, style, and color. If the width is only set, the border is invisible. E.g:
                    A summary of the introduction of background images and borders in CSS-Luchuan-Luchuan's Blog
 And if you add a style, you can see the border, for example:
                           A summary of the introduction of background images and borders in CSS-Luchuan-Luchuan's Blog

PS: If the color is set, the border will be displayed in the corresponding color, if no color is set, it will display black by default.


2015-12-29 21:32:19

Guess you like

Origin blog.csdn.net/ZxxSteven/article/details/53946559