apple-touch-icon-precomposed and Apple-touch-icon attribute differences

Source: Internet
Author: User

Apple Safari browser apple-touch-icon-precomposed and Apple-touch-icon attributes are different, before the online search for the relevant information and Apple's development documentation manual, the two attributes of the difference is not enough detailed, This has led to some confusion at the moment of development.

These two properties defined by Apple Safari are for Apple mobile devices (ipod, ipad, iphone) To add icon definition properties to the mobile website-mobile web ("Add to Desktop Icon") when you build a mobile website (commonly known as: Mobile Station, Mobile web), to avoid setting the icon for the move station (here's an article about Apple Meta settings >> Click to view <<), which is not covered in this article, and this article is to make up for this vacancy.

The properties of the icon settings are divided into:

Apple-touch-icon and apple-touch-icon-precomposed Two properties, literally, the first is "Apple Mobile device Icon", the second is "Apple mobile device initial icon style", Because the second meaning completely does not understand the presupposition is what is the presupposition of what is different, from the official information also did not understand what is the obvious difference, through the experiment to learn the two obvious differences.

Direct:

Picture one:

(picture one) in the lower right corner can be seen there are two Milanoo icons, respectively, Apple-touch-icon and apple-touch-icon-precomposed attributes of the icon, see the difference?

 

enlarge look big Picture: Notice the gloss above the icon, see Clearly, use the Apple-touch-icon attribute of the obvious than use apple-touch-icon- The precomposed icon has a high light, because there is a set of specifications for the icon in the iOS system, that is, the icons in the iOS device are unified for "Four Corners", "highlight processing", and "shadow of the Icons", which is added to all desktop elements in the iOS device. So the style is not handled as an icon alone, because in the visual unification the most important is the unity of the shape, so "fillet" is necessary, but for "high-gloss" Apple did not make a special emphasis, so Apple set the "highlight" as an option, resulting in Apple-touch-icon and The Apple-touch-icon-precomposed property.

conclusion:

    • Use the Apple-touch-icon property as" Add highlight bright icon ";
    • Use the Apple-touch-icon-precomposed property as" Design original icon ";

As you remember, the last two sentences are the most useful to say the entire feeling. Ha ha.

Original http://blog.sina.com.cn/s/blog_6d48e77101015krn.html

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.