简体   繁体   English

除了Opera和IE9或更早版本之外,网站是否适用于所有浏览器

[英]Site works in every browser but Opera and IE9 or earlier?

My site www.globalplayernetwork.com works in Chrome, Firefox, and on IE 10 but not in IE 9 or earlier and Opera. 我的网站www.globalplayernetwork.com适用于Chrome,Firefox和IE 10,但不适用于IE 9或更早版本以及Opera。

It seems the Nav bar and the logo are way too far down. 似乎导航栏和徽标太过分了。 What can I try to fix this? 我可以尝试解决这个问题?

HTML Page HTML页面

- Header - 标题

  <section class="overlay">
  &nbsp;&nbsp;&nbsp;&nbsp;<img src="http://www.globalplayernetwork.com/images/GPNLogo.png" height="165" width="590" alt="Global Player Network" title="Global Player Network" /> 
  </section>

- Navigation Button - 导航按钮

  <nav> 
  <ul id="menu" class="menu"> 
  <li> 
  <a href="#" id="contact">
  <span class="active"></span> <span class="wrap"> 
  <span class="link">Contact</span> 
  <span class="descr">
  <font size="2"><b>Get in Touch</b></font></span>
  </span> 
  </a> 
  </li> 
  </ul> 
  </nav>
  </div>

CSS CSS

ul.menu{margin:0;padding:0;list-style:none;font-size:14px;width:auto}
ul.menu a{text-decoration:none;outline:none}

ul.menu li{float:right;width:170px;height:85px;position:relative;cursor:pointer}

ul.menu li > a{position:absolute;top:-440px;right:0px;width:170px;height:78px;z-index:12;background:transparent url(../images/overlay.png) no-repeat bottom right;background-color:rgba(0, 0, 0, 0.75);-webkit-box-shadow:0px 0px 2px #000 inset;-moz-box-shadow:0px 0px 2px #000 inset;box-shadow:0px 0px 2px #000 inset}

ul.menu li a img{border:none;position:absolute;width:0px;height:0px;bottom:0px;left:85px;z-index:100;-webkit-box-shadow:0px 0px 4px #000;-moz-box-shadow:0px 0px 4px #000;box-shadow:0px 0px 4px #000}

ul.menu li span.wrap{position:absolute;top:25px;left:0px;width:170px;height:60px;z-index:15}

ul.menu li span.active{position:absolute;background:rgba(0, 0, 0, 0.75);top:85px;width:170px;height:0px;left:0px;z-index:14;-webkit-box-shadow:0px 0px 4px #000 inset;-moz-box-shadow:0px 0px 4px #000 inset;box-shadow:0px 0px 4px #000 inset;-webkit-border-bottom-right-radius:15px;-webkit-border-bottom-left-radius:15px;border-bottom-right-radius:15px;-moz-border-radius-bottomright:15px;border-bottom-left-radius:15px;-moz-border-radius-bottomleft:15px}

ul.menu li span span.link,ul.menu li span span.descr,ul.menu li div.box a{margin-left:15px;text-transform:uppercase;font-size:33px;text-shadow:1px 1px 1px #000}

ul.menu li span span.link{color:#fff;font-size:22px;float:left;clear:both}

ul.menu li span span.descr{color:#0B75AF;float:left;clear:both;width:155px;font-size:10px;letter-spacing:1px}

ul.menu li div.box{display:block;position:absolute;width:170px;overflow:hidden;height:170px;top:85px;left:0px;display:none;background:#000}ul.menu li div.box a{float:left;clear:both;line-height:30px;color:#0B75AF}

ul.menu li div.box a:first-child{margin-top:15px}ul.menu li div.box a:hover{color:#fff}

ul.menu{margin-top:150px}

First thing is that you are not setting a HTML5 doctype but you are using HTML5 code, like 首先,您不是在设置HTML5文档类型,而是使用HTML5代码,例如

<nav> & <section> 

etc. These will be dropped by unsupported browsers. 这些将被不受支持的浏览器删除。 if you must run HTML5 code then use a HTML5 shim for older versions of IE. 如果你必须运行HTML5代码,那么对旧版本的IE使用HTML5垫片。

Also, on line 94 you have 另外,在第94行你有

</div>

also on line 1 you are missing 也在第1行,你错过了

 <html>

and on line 74 you have 在第74行你有

<span class="descr"><font size="2"><b>Pick Your Spot</span></b></font></span>

you can't start with a span, then font, then bold, and then reverse the order and end with span, then bold, then font... you need to open and close your brackets properly 你不能先用span,然后是font,然后是粗体,然后反转顺序并以span结束,然后是粗体,然后是font ...你需要正确打开和关闭括号

this is correct: 这是对的:

 <span class="descr"><font size="2"><b>Pick Your Spot</b></font></span>

line 82 you have a missing tag 第82行你有一个丢失的标签

basically you are being forgiven by firefox but not by IE 9 which is less forgiving. 基本上你被firefox原谅了,但不是IE 9的原谅。

start by running your HTML through a validator and fix all the errors on missing tags. 首先通过验证器运行HTML并修复丢失标签上的所有错误。 Then your page navigation should correct itself. 然后您的页面导航应该自行纠正。

check this link out: 检查此链接:

HTML Tidy HTML整洁

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

相关问题 禁用可在除IE之外的所有浏览器中使用 - disable works in every browser but IE OnKeyDown不适用于IE9,但适用于所有其他浏览器 - OnKeyDown doesn't work for IE9 but works for everyother browser ie9和opera的jquery对象问题 - jquery object issue with ie9 and opera 我的javascript适用于IE8的每个浏览器 - My javascript works in every browser but IE8 jQuery可以在除IE之外的所有浏览器中使用 - Jquery works in every browser other than IE 在Firefox和Opera中可用,但在IE8中不可用 - Works in Firefox & Opera, but not in IE8 JavaScript:不透明度适用于歌剧,但不适用于IE - JavaScript: opacity works in opera but not IE 关于浏览器独立多列文本段落花的问题。 (适用于IE8 IE9) - Question on Browser Independant Multi-Column Text Paragraph Flower. (Works in IE8 IE9) 为什么这个简单的代码在firefox中失败,但在包括Opera和旧IE版本在内的所有其他浏览器中都可以使用 - Why does this simple code fail in firefox yet work in every other browser including opera and old IE versions 如何告诉Chrome,请针对每个网站或任何操作使用浏览器中的本地javascript? 类似于歌剧 - How to tell Chrome, please use local javascript from the browser for every site or any actions? Similar to Opera
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM