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

CSS Elf_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:40:191170browse


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.

Statement:
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