那种把所有图片都拼到一张图片上的做法_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:38:31
Original
1270 people have browsed it

为了加快加载速度把需要的图片都放在一张图片上,然后通过css控制显示指定的区域。
问下,是怎么要确定要使用的区域的?计算像素偏移量吗?


回复讨论(解决方案)

background-position

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

有两种方式,一种是类似于fis的,是自动算的,
另外一种是人为手工在ps里边量,然后一个一个来算。

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!