What size should apple-touch-icon.png be for iPad and iPhone?

前端 未结 11 2058
醉酒成梦
醉酒成梦 2021-01-29 17:11

Are Apple touch icons bigger than 60x60 supported, and if so, what dimensions should I use for the iPad and iPhone?

11条回答
  •  长发绾君心
    2021-01-29 17:49

    The relevant documentation on Apple's site, Specifying a Webpage Icon for Web Clip.

    There is no need to put anything in the head of your document. If no icons are specified using a link element, the website root directory is searched for icons with the apple-touch-icon or apple-touch-icon-precomposed prefix.

    For example, if the appropriate icon size for the device is 57 x 57, the system searches for filenames in the following order:

    • apple-touch-icon-57x57-precomposed.png
    • apple-touch-icon-57x57.png
    • apple-touch-icon-precomposed.png
    • apple-touch-icon.png

提交回复
热议问题