[英]Website previews fine on Mac Safari, Firefox, Chrome but only body shows on PC browsers
During testing I'm having problems with the website displaying properly in PC browsers, including IE, Chrome and Firefox. 在测试过程中,我遇到了网站无法在PC浏览器(包括IE,Chrome和Firefox)中正确显示的问题。 It has tested well on Mac versions of Safari, Firefox and Chrome, however. 但是,它已经在Mac版本的Safari,Firefox和Chrome上进行了良好的测试。
Specifically only the x-repeat background image in the body is displaying. 具体来说,仅显示体内的x重复背景图像。 All other content is not showing at all. 其他所有内容均未显示。
http://www.spmguardians.org/2013/index.html http://www.spmguardians.org/2013/index.html
Oddly, IE 10 previews the following page correctly, but not the page reference above: 奇怪的是,IE 10可以正确预览以下页面,但不能预览以上页面:
http://www.spmguardians.org/2013/calendar/index.html http://www.spmguardians.org/2013/calendar/index.html
Any help would be greatly appreciated! 任何帮助将不胜感激!
While the page loads fine for me (I'm using a MacBook Pro and Safari), I can see some syntax errors in your code. 尽管页面对我来说很好(我使用的是MacBook Pro和Safari),但是我可以在代码中看到一些语法错误。
<meta name="viewport" content="width=device-width, user-scalable=yes"></meta>
You should be closing the meta tag like this: 您应该像这样关闭meta标签:
<meta name="viewport" content="width=device-width, user-scalable=yes" />
Additionally, 另外,
There are several of these lines under the #explore DIV... #explore DIV下有几行...
<div id="exploremenutop"> <a class="explore1" title="Guardian scores and schedules" a href="http://www.centralmassconference.org/g5-bin/client.cgi?G5genie=585">Guardian scores and schedules</a></div>
<div id="exploremenutop"> <a class="explore2" title="Campus ministry, Grade 9 retreat" a href="PDFs/9th-Grade-Retreat-2017.pdf">Campus ministry, Grade 9 retreat</a></div>
<div id="exploremenutop"> <a class="explore2" title="Parent Board News" a href="parentboard/index.html">Parent Board News</a></div>
<div id="exploremenutop"> <a class="explore2" title="Alumni: Stay connected!" a href="alumninews/index.html">Alumni: Stay connected!</a></div>
<div id="exploremenutop"> <a class="explore2" title="Student/Parent Handbook" a href="PDFs/Handbook2013-14.pdf">Student/Parent Handbook</a></div>
<div id="exploremenutop"> <a class="explore2" title="College Contest for Juniors" a href="PDFs/CollegeVisitCompetition.pdf">College Contest for Juniors</a></div>
You are specifying the a
twice... once at the beginning of the tag (where it belongs), and once again right before href. 您要在标签的开头(它所属的位置)指定a
两次...,然后在href之前再次指定一次。 Remove the extra a
floating out there in each of these lines. 删除多余的a
在这些线路的浮在那里。
Another one... this code: 另一个...此代码:
<!-- end #sidebar1 -->
</span></div>
That closing span
doesn't seem to close any actual tag. 该关闭span
似乎并未关闭任何实际标签。 I can't find a matching opening span that goes with it. 我找不到与其匹配的开口长度。
Those are the errors that jump out at me... there may be more syntax errors, but going through and fixing little mistakes like this should help with rendering in more browsers. 这些是让我大吃一惊的错误……可能会有更多的语法错误,但是仔细检查并修复此类小错误应该有助于在更多浏览器中进行渲染。 Each browser handles mistakes differently - some can work through them, some die, some just display your page wrong, etc. 每种浏览器对错误的处理方式不同-有些可以解决这些错误,有些会死掉,有些只是显示您的页面错误等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.