How do I give my websites an icon for iPhone?

后端 未结 5 1993
温柔的废话
温柔的废话 2021-02-11 23:30

How do I set the icon that appears proper on the iPhone for the websites I have created?

5条回答
  •  感情败类
    2021-02-11 23:45

    See the Specifying a Webpage Icon for Web Clip section of the Configuring Web Applications page of the Safari Web Content Guide in the Safari Reference Library.

    Specifying a Webpage Icon for Web Clip

    You may want users to be able to add your web application or webpage link to the Home screen. These links, represented by an icon, are called Web Clips. Follow these simple steps to specify an icon to represent your web application or webpage on iOS.

    • To specify an icon for the entire website (every page on the website), place an icon file in PNG format in the root document folder called apple-touch-icon.png.

    • To specify an icon for a single webpage or replace the website icon with a webpage-specific icon, add a link element to the webpage, as in:

      In the above example, replace custom_icon.png with your icon filename.


    Note: Safari on iOS 7 doesn’t add effects to icons. Older versions of Safari will not add effects for icon files named with the -precomposed.png suffix. See First Steps: Identifying Your App in iTunes Connect for details.

提交回复
热议问题