CSS image crop tech

Source: Internet
Author: User
Remember that the As script can be easily used for flex applications. CodeWhile image crop in CSS is also very popular nowadays,
For example, Google's Gmail images (the figure below shows a PNG image used by CSS In Gmail) use this technology. Many theme in Yahoo's Yui also uses this method, this method has many advantages, such as the ease of chip management, reduced Web requests, and more conducive to image compression,

The implementation principle is very simple, that is, using CSS to set the display/width/height attribute of the element, coupled with the implementation of Backgroud-Image Positioning (background-position), there is an article about this technologyArticle(Site guistuff is a very good CSS and practical resource site), CSS image techniques p1

Related Article

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.