html里语言兼容,ie9与现代html和css语言的兼容性(跨浏览器CSS)

它与我在过去2年见过的每一款浏览器完美配合。由于我是新的网络,我不知道旧浏览器可以处理或不处理什么。我知道像html5,javascript,webgl等现代脚本不适用于旧浏览器。然而,这个网页非常简单,就像我所说的。奇怪的是,它适用于旧版本的Chrome和Firefox。但IE9完全不能处理大多数的CSS规则...

#main

{

padding:0;

margin:0;

width:100%;

background-image:url(http://www.sisecam.com.tr/ik/index1.4.1.png);

background-repeat:no-repeat;

background-size:100%;

background-color:white;

}

#warningmsg

{

position:relative;

left:40px;

top:30px;

}

#locatordiv

{

position:relative;

top:436px;

}

#yellowribbon

{

width:100%;

height:320px;

background-image:url(http://www.sisecam.com.tr/ik/index1.4.3.png);

background-repeat:no-repeat;

background-color:#f5c11f;

}

#loginbutton

{

margin:0;

padding:0;

width:100%;

display:block;

height:35px;

position:relative;

left:85px;

top:50px;

}

#logo

{

margin-left:auto;

margin-top:90px;

background-image:url(http://www.sisecam.com.tr/ik/logo.png);

background-repeat:no-repeat;

width:100px;

height:100px;

position:relative;

right:20px;

}

.title

{

position:relative;

left:20px;

top:2px;

font-size:15px;

color:#FFF;

}

.input

{

display:block;

height:25px;

width:160px;

background-size:200 40;

background-repeat:no-repeat;

margin-top:34px;

position:relative;

top:55px;

left:65px;

}

input

{

font-size:17px;

width:170px;

height:20px;

border-style:none;

padding:0;

outline:none;

}

body

{

background:white;

}

input[type="submit"] {

opacity:0;

width:inherit;

height:inherit;

}

假设IE9能够处理的div及其ID ...

我的主要问题是CSS兼容性。是否可以编写适用于ie9的css规则,因为它可以在其他浏览器中工作?

任何建议都会有所帮助。

+0

你可以为IE9编写单独的css文件。 –

+0

http://stackoverflow.com/questions/6418139/media-query-not-working-in-ie9 –

+0

您是否为HTML文档设置了DTD - 没有DTD,您的浏览器将进入“Quirks模式”和一些样式可能看起来不如预期。 –

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值