Sprite principle and the advantages and disadvantages

1> Principle: the pages of some of the background image integrated into an image file, use backgroun-position attributes such as background positioning
1> advantages:
<1> reduce http requests, pages load faster and improve the user experience
<2 > reduce the size of the picture, reducing the number of bytes
<3> picture resolve designer named troubles
<4> style easy to replace
2> Cons:
<1> is necessary to measure the development, cumbersome
<2> maintenance when trouble
<3> sprite can not change the size and position of the
<4> widescreen high-resolution screen, prone to breakage bACKGROUND

Guess you like

Origin www.cnblogs.com/haoouba/p/11221087.html