【发布时间】:2015-05-07 06:57:20
【问题描述】:
Site jgimprinters.com 在 Chrome 中加载并运行良好,但在 IE 或 Firefox 中则不行。 我已经验证 IE 下载了样式表,但是它并没有应用很多样式。 例如,在 IE 中,应该以全尺寸隐藏的菜单按钮正在显示并且全部爆炸(太大),菜单样式都不起作用,一些东西的背景颜色不起作用。虽然 IE 可以看到样式表,但它并没有应用样式。
任何帮助将不胜感激。
谢谢
编辑:sn-ps 不起作用 - 对于初学者来说,有整个导航 - 并且导航下方缺少标题
#nav-wrapper{
max-width:900px;
margin:0 auto;
}
#nav{
list-style:none;
}
#nav li{
float:left;
}
#nav li a{
webkit-border-radius: 6px 6px 0 0;
-moz-border-radius: 6px 6px 0 0;
border-radius: 6px 6px 0 0;
padding: 0 17px;
margin: 0 auto;
position: relative;
display: block;
height: 30px;
cursor: pointer;
text-decoration: none;
color: #FFFFFF;
line-height: 30px;
text-align: center;
font-size:12px;
font-weight:bold;
}
#nav li a.active, #nav li a.better-active{
background: #EDEDED;
color: #5D5F5D;
}
#nav li a:hover{
background:#5D5F5D;
color:#ffffff;
}
#menu-button{
display:none;
width:36px;
cursor:pointer;
}
#menu-button img{
margin:0px;
}
#head-wrapper{
height:150px;
background:url('/wp-content/uploads/2015/02/header.png') no-repeat;
background-position:center;
width:100%;
display:block;
}
#head-inner{
width:100%;
max-width:900px;
margin:0 auto;
}
#logo{
margin-left:30px;
float:left;
}
#head-right{
float:right;
width:270px;
margin-top:30px;
margin-right:15px;
}
#callout{
font-size: 14px;
font-family: Verdana, Geneva, Arial, Helvetica, Sans-Serif;
font-weight: bold;
font-style: normal;
text-decoration: none;
text-transform: none;
font-variant: normal;
text-align: left;
color: #ED1D2E !important;
width:280px;
}
#phone{
font-size: 30px;
font-family: 'Trebuchet MS', Arial, Helvetica, Sans-Serif;
font-weight: bold;
font-style: normal;
text-align: left;
vertical-align: middle;
color: #000000 !important;
text-decoration:none;
}
IE 和 Firefox 几乎忽略了所有这些。
看起来像:
应该看起来像:
【问题讨论】:
-
你能发布你的 CSS sn-ps 假设正在渲染吗?还有 IE 的截图?
-
您的源代码中存在可能导致此问题的错误。请检查使用validator.w3.org 并修复它们(尤其是那些关于未关闭标签的)
-
验证错误已处理,仍然存在这些问题
-
@chris 不是 CSS 中的那些——请参阅我的回答 ;-)
标签: html css wordpress internet-explorer