windows-8 – 尽管代码正确,Windows 8 Metro Tiles仍无法在主题中工作

前端之家收集整理的这篇文章主要介绍了windows-8 – 尽管代码正确,Windows 8 Metro Tiles仍无法在主题中工作前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
按照微软上的指示设置Win 8 Metro Tiles – http://www.buildmypinnedsite.com,但它们对我不起作用.我的网站是 http://themixtapesite.com

这是我的标题代码,标签到位,所有其他标签的其他工作,所有我的Apple相关代码工作正常.

<head>

<Meta charset="<?PHP bloginfo( 'charset' ); ?>" />
<Meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">

<Meta name="format-detection" content="telephone=no">

<link rel="apple-touch-icon-precomposed" href="http://assets.themixtapesite.com/images/touch-icon-iphone.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://assets.themixtapesite.com/images/touch-icon-ipad.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://assets.themixtapesite.com/images/touch-icon-iphone-retina.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://assets.themixtapesite.com/images/touch-icon-ipad-retina.png" />

<title><?PHP wp_title( '|',true,'right' ); ?></title>
<Meta name="description" content="<?PHP rb_excerpt('rb_excerptlength_widget','rb_excerptmore'); ?>">
<Meta name="viewport" content="width=device-width; initial-scale=1.0; 
maximum-scale=1.0; minimum-scale=1.0; user-scalable=0;" /> 
<Meta name="apple-mobile-web-app-capable" content="yes" /> 
<Meta name="apple-mobile-web-app-status-bar-style" content="black" /> 
<Meta name="application-name" content="TMS"/> 
<Meta name="msapplication-TileColor" content="#000000"/> 
<Meta name="msapplication-TileImage" content="http://assets.themixtapesite.com/images/15024da5-9803-4120-af3f-e8b2636c5eba.png"/>

代码似乎没有任何问题,您可以查看源代码及其中的内容,但Win 8和microsofts站点不会读取3个标签,标题,颜色或图像中的任何一个.必须与我的主题有关,但它可能是什么?

解决方法

首先,您可以删除额外的视口标记.有没有必要有两个?

您的页面似乎也有未关闭标签.也许这导致它不显示

http://validator.w3.org/check?uri=http%3A%2F%2Fthemixtapesite.com.

解决这两个然后回到我身边.对不起,但我太喜欢直接向你发表评论了.

猜你在找的Windows相关文章