切割图片这里不是真正的切割,只是用CSS取图片中的一部分而已。这样做的好处就是减少了打开网页时请求图片的次数。主要有两种方式,一是做为某一元素的背景图片,二是用img元素的属性。方法一: 用CSS中元素的background : background-color || background-image || background-repeat || background-attachment || background-position。 示例代码如下:1background:transparenturl(123.jpg) no-repeatscroll-140px-20px;解释:12345 Read More
posted @ 2014-04-03 17:47
台北的风
Views(1147)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号