iOS中为网站添加图标到主屏幕
1 <link rel="apple-touch-icon-precomposed" href="icon.png"/> 2 <link rel="apple-touch-icon" href="icon.png"/>
apple-touch-icon和apple-touch-icon-precomposed,区别就在于是否会应用iOS中自动给图标添加的那层高光。前者会自动加圆角和高亮效果
1 <link rel="apple-touch-icon" sizes="57x57" href="icon-57.png"> 2 <link rel="apple-touch-icon" sizes="72x72" href="icon-72.png"> 3 <link rel="apple-touch-icon" sizes="114x114" href="icon-114.png"> 4 <link rel="apple-touch-icon" sizes="144x144" href="icon-144.png">