除了IE以外的浏览器的msapplication-task?

时间:2013-02-05 22:36:31

标签: html browser meta-tags

在IE中,使用<META NAME="msapplication-task" CONTENT="name=TASKNAME;action-uri=ONCLICK;icon-uri=ICON" />,您可以使用Windows 8+中的IE 9+轻松地将自定义操作图标放入固定网站的跳转列表中。 有没有办法与其他浏览器实现相同或类似的效果?

关于这个主题,有没有办法在其他操作系统中实现这个效果?我主要对Max OS 10.6+和Ubuntu 10.10+感兴趣(也就是说,和Ubuntu一样团结)

1 个答案:

答案 0 :(得分:2)

iOS有一些。将其放入<head>

<!-- Hide the browser UI when pinned to the home screen -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">

您可以在根目录中设置主屏幕图标。您需要以下内容:

<!-- With a reflective shine -->
<link rel="apple-touch-icon" href="apple-touch-icon.png">

<!-- Without a reflective shine -->
<link rel="apple-touch-icon-precomposed" href="apple-touch-icon-precomposed.png">

您只是将图标放在根目录中的HTML5 Boilerplate recommends,就像图标一样。

相关问题