Home  >  Article  >  Web Front-end  >  The way of putting all the pictures into one picture_html/css_WEB-ITnose

The way of putting all the pictures into one picture_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:38:311308browse

In order to speed up loading, put all the required images on one image, and then display the specified area through CSS control.
Ask, how do you determine the area to be used? Calculate pixel offset?


Reply to discussion (solution)

background-position

CSS sprite
http://css.v2bo.com /

There are two ways, one is similar to fis, which is automatically calculated,
the other is manually measured in PS, and then calculated one by one.

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