页面未在Android浏览器中显示

时间:2012-07-16 15:28:15

标签: android html css html5 css3

我真的非常感谢thisclient的任何和所有帮助,因为我查看了源代码,无法弄清楚为什么我正在开发的这个网页中显示的内容并没有显示。

这是网址:the-irf.com/mob

此外,如果它有帮助,我会在Android浏览器中发生这种情况。

提前致谢!

1 个答案:

答案 0 :(得分:1)

好的,我使用Moto Droid用户代理复制了它。问题是你的样式代码:

<style type="text/css">footer nav{ background:transparent url(assets/images/nav.png) no-repeat center center; } @media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5){ footer nav{ background:transparent url(assets/images/retina/1.5/nav@1.5x.png) no-repeat center center; background-size:100%; } } @media only screen and (-moz-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2){ footer nav{ background:transparent url(assets/images/retina/2/nav@2x.png) no-repeat center center; } }</style><style type="text/css">.contentBox{ background:#ff0000; }

这有点乱,我不确定你在做什么,但是删除这段代码然后就可以了。我想那里的东西不想在早期版本的Android上玩得很好。

另请注意,我发现您的html代码存在语法问题,但>nav丢失了{{1}}。

相关问题