CSS Sprites (basic notation, how to use)

Source: Internet
Author: User

White is to cut a big picture with a style sheet.

Now a lot of good sites are so written, and then a lot of location pictures, just use a picture, then a URL request on the line, speed up the site access speed


This is where the slicing tool can export the contents of the box directly.


This is the slice tool all split up and cut with CSS sprites in a way that merges together is OK


Here is a picture of the CSS Wizard's full use of the wordingThe default is the position of the picture is the top left corner of your Div, we use background-position, give him left, move up a bit, the display will change, and a picture of a different location is displayed.some places need to be tiled, so I'm transduction, and the final file is the Res.png .。

So how do you tell what the position is?

With the PS slicing tool, you can directly see the position and the width of the height


————————————————————————————————————

Original address: Click to open the link

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.