Home >Web Front-end >CSS Tutorial >What is the method to introduce local images in css
How to introduce local images in css: You can use the background attribute, such as [background:url(images/2.jpg) no-repeat;]. The background property sets all background properties in one statement.
The operating environment of this article: windows10 system, css3, thinkpad t480 computer.
Attribute introduction:
background is a shorthand attribute, which can set all background attributes in one statement.
You can set the following properties:
background-color
The above is the detailed content of What is the method to introduce local images in css. For more information, please follow other related articles on the PHP Chinese website!