Home > Web Front-end > HTML Tutorial > CSS Elf_html/css_WEB-ITnose

CSS Elf_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:40:19
Original
1162 people have browsed it


Method 1:




Method 2:



Method 2 can reduce http requests! ! !

The core idea of ​​css sprite is to combine multiple pictures into one picture, and then control which parts of the picture are displayed through the position in the background attribute. If the picture can be selected on the web page, it must be an inserted picture. If it cannot be selected, it is the background picture.


Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

Related labels:
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