JavaScript-关于兼容性问题
网站上的表格table,在火狐与谷歌游览器上能正常显示,在IE下却成空白,这是咋么回事,如何解决啊?
在IE开发者工具中,文本模式选择I8标准就能显示正常了,如何解决
div.DTE {
}
div.DTE_Processing_Indicator {
background: url("../images/ajax-loader.gif") no-repeat scroll left top transparent;
display: none;
height: 32px;
position: absolute;
right: 13px;
top: 10px;
width: 32px;
z-index: 20;
}
div.DTED_Envelope_Container div.DTE_Processing_Indicator {
right: 36px;
}
div.DTE_Header {
background-color: #F3F3F3;
border-bottom: 1px solid #DDDDDD;
height: 50px;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
div.DTED_Lightbox_Content div.DTE_Header {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
div.DTE_Header_Content {
font-size: 1.3em;
padding: 18px 10px 2px;
}
div.DTE_Body {
padding: 50px 0;
}
div.DTE_Body_Content {
overflow: auto;
position: relative;
}
div.DTE_Form_Info {
}
div.DTE_Form_Content {
padding: 10px;
position: relative;
}
div.DTE_Footer {
background-color: #F3F3F3;
border-top: 1px solid #DDDDDD;
bottom: 0;
height: 50px;
left: 0;
position: absolute;
width: 100%;
}
div.DTED_Lightbox_Content div.DTE_Footer, div.DTED_Envelope_Container div.DTE_Footer {
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
div.DTE_Footer_Content {
padding: 10px;
}
div.DTE_Field {
clear: both;
padding-left: 20%;
padding-right: 20%;
padding-top: 10px;
position: relative;
}
div.DTE_Field > label {
float: left;
padding-top: 2px;
width: 40%;
}
div.DTE_Field > div.DTE_Field_Input {
float: right;
width: 60%;
}
div.DTE_Form_Clear {
clear: both;
}
div.DTE_Form_Error {
display: none;
float: left;
padding: 5px;
}
div.DTE_Field_StateError {
}
div.DTE_Field_Type_text input {
padding: 3px;
width: 100%;
}
div.DTE_Field_Type_textarea textarea {
height: 80px;
padding: 3px;
width: 100%;
}
div.DTE_Field_Type_date img {
cursor: pointer;
vertical-align: middle;
}
div.DTE_Form_Buttons button {
background: -moz-linear-gradient(center top , #FFFFFF 0%, #F3F3F3 89%, #F9F9F9 100%) repeat scroll 0 0 transparent;
border: 1px solid #999999;
border-radius: 4px 4px 4px 4px;
box-shadow: 1px 1px 3px #CCCCCC;
cursor: pointer;
display: block;
float: right;
font-size: 14px;
margin-top: 0;
padding: 5px 15px;
text-align: center;
text-shadow: 0 1px 0 white;
}
div.DTE_Form_Buttons button:hover {
background: -moz-linear-gradient(center top , #F3F3F3 0%, #E2E2E2 89%, #F4F4F4 100%) repeat scroll 0 0 transparent;
border: 1px solid #666666;
box-shadow: 1px 1px 3px #999999;
}
div.DTE_Form_Buttons button:active {
box-shadow: 1px 1px 3px #999999 inset;
}
div.DTE_Field_Error {
color: red;
display: none;
font-size: 11px;
}
div.DTE_Action_Remove div.DTE_Body_Content {
padding: 20px 0;
text-align: center;
}
div.DTTT_container {
float: left;
}
div.DTED_Lightbox_Wrapper {
display: none;
height: 100%;
left: 50%;
margin-left: -390px;
position: fixed;
top: 0;
width: 780px;
z-index: 11;
}
div.DTED_Lightbox_Container {
display: table;
height: 100%;
width: 100%;
}
div.DTED_Lightbox_Content_Wrapper {
display: table-cell;
vertical-align: middle;
width: 100%;
}
div.DTED_Lightbox_Content {
background-color: white;
border: 2px solid #111111;
border-radius: 5px 5px 5px 5px;
box-shadow: 3px 3px 10px #555555;
position: relative;
}
div.DTED_Lightbox_Close {
background: url("../images/close.png") no-repeat scroll left top transparent;
cursor: pointer;
height: 30px;
position: absolute;
right: -15px;
top: -15px;
width: 30px;
z-index: 12;
}
div.DTED_Lightbox_Background {
background-color: black;
display: none;
height: 100%;
left: 0;
opacity: 0.1;
position: fixed;
top: 0;
width: 100%;
z-index: 10;
}
div.DTED_Envelope_Wrapper {
bottom: 0;
display: none;
height: 100%;
left: 50%;
overflow: hidden;
position: absolute;
top: 0;
z-index: 11;
}
div.DTED_Envelope_ShadowLeft {
background: url("../images/shadow_left.png") no-repeat scroll left top transparent;
height: 9px;
left: 0;
position: absolute;
top: 0;
width: 50%;
z-index: 10;
}
div.DTED_Envelope_ShadowRight {
background: url("../images/shadow_right.png") no-repeat scroll right top transparent;
height: 9px;
position: absolute;
right: 0;
top: 0;
width: 50%;
z-index: 10;
}
div.DTED_Envelope_Container {
background-color: white;
border-bottom: 1px solid #777777;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
border-left: 1px solid #777777;
border-right: 1px solid #777777;
box-shadow: 3px 3px 10px #555555;
left: 5%;
position: absolute;
top: 0;
width: 90%;
}
div.DTED_Envelope_Close {
background: -moz-linear-gradient(center top , white, #CCCCCC) repeat scroll 0 0 transparent;
border: 1px solid #999999;
border-radius: 2px 2px 2px 2px;
box-shadow: 0 0 1px #999999;
cursor: pointer;
font-size: 12px;
height: 18px;
position: absolute;
right: 10px;
text-align: center;
text-shadow: 0 1px 0 white;
top: 16px;
width: 18px;
z-index: 12;
}
div.DTED_Envelope_Background {
background-color: black;
display: none;
height: 100%;
left: 0;
opacity: 0.1;
position: fixed;
top: 0;
width: 100%;
z-index: 10;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的确应该提供下代码,这样才便于分析,当然我可以说一下我的想法:
1、你可以使用IE自带的开发者工具,你可以在打开的页面上按下F12或者找Tool下面找到对应的控制台,这里你可以看到整个源代码,如果JS出错的话,应该可以看到对应的错误。
2、禁用一下JS看看效果。
3、尝试使用兼容选项卡,虽然你的代码可以运行在Chrome和firefox上,应该是最新的IE才能够正常,但是还是建议你尝试下使用兼容模式看看。如果是IE8,9,10你会发现地址栏后有个对应的“碎页面”图标,哪个是兼容模式按钮。
请补充下对应的地址或者代码吧~~