简体   繁体   English

页面未显示在Android浏览器中

[英]Page not showing in Android Browser

I wound really appreciate any and all help with thisclient because i have viewed the source-code and can not figure out why just the and nothing inside it is being displayed in this web page i am developing. 我真的很感激此客户端的所有帮助,因为我已经查看了源代码,无法弄清楚为什么我正在开发的此网页中仅显示,而其中没有内容。

Here is the url: the-irf.com/mob 网址是:the-irf.com/mob

Also if it helps, ive notoced this occurs in the Android browser. 同样,如果有帮助,我会注意到这发生在Android浏览器中。

Thanks in Advance! 提前致谢!

Okay, I reproduced it using a Moto Droid user agent. 好的,我使用Moto Droid用户代理进行了复制。 The problem is your style code: 问题是您的样式代码:

<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; }

It is a bit of a mess and I'm not sure what you are doing, but remove this code and it then works. 有点混乱,我不确定您在做什么,但是删除此代码即可使用。 I guess something in there doesn't want to play nice on earlier versions of Android. 我猜那里的某些内容并不想在早期版本的Android上发挥出色。

Also note I see a syntax issue with your html code, you have a missing > with nav . 另请注意,我在html代码中遇到语法问题,您缺少带有nav >

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM