简体   繁体   English

网站可以在Mac Safari,Firefox,Chrome上很好地预览,但只能在PC浏览器上显示正文

[英]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.

相关问题 MarkerClusterer不仅仅适用于webkit(Chrome和Safari),在Firefox中运行良好? - MarkerClusterer not working only in webkit (Chrome and Safari), fine in Firefox? jQuery标签式页面内容-仅第一页显示sIFR(IE + Safari / PC和Safari / Mac) - JQuery tabbed pages content - only the first page shows the sIFR (IE + Safari/PC and Safari/Mac) jQuery,可以在Chrome中正常运行,但不能在Firefox和Safari中运行 - Jquery,working fine in Chrome, but not in Firefox and Safari Safari 5.1.7中的animate()慢,但在Firefox和chrome中可以用 - Slow animate() in safari 5.1.7, but fine in firefox and chrome 仅在Mac中,Chrome不会触发jQuery更改事件。 适用于Safari,Firefox和Windows 7上的Chrome浏览器 - Jquery change event not firing on chrome in mac only. Works on safari, firefox, and on chrome on windows 7 jQuery ajax调用在Mac Safari和Chrome浏览器上返回空错误 - jQuery ajax call returns empty error on Mac Safari and Chrome browsers jQuery Ajax .load()仅在Safari中运行缓慢,在其他浏览器中运行良好 - jQuery Ajax .load() slow in Safari only, fine in other browsers 链接在Safari和Chrome中需要2次点击,而在Firefox中只有1次点击 - Links require 2 clicks in Safari & chrome, but only 1 in Firefox jQuery仅适用于firefox或safari / chrome控制台 - jQuery works only in firefox or safari/chrome console jQuery AJAX在任何IE中均不起作用,但在Firefox,Opera,Chrome和Safari中运行良好 - jQuery AJAX not working in any IE, but fine in Firefox, Opera, Chrome and Safari
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM