Home >Web Front-end >HTML Tutorial >CSS Elf_html/css_WEB-ITnose
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.