0
I; m尝试解决ie 6最小宽度的解决方法。Internet Explorer版本6和7 - 最小宽度问题
见下
<!--[if lte IE 6]>
<style type="text/css">
.left_2 {width:expression(document.body.clientWidth < 137? "135px": "21.5%") !important; padding-left:7.5px; padding-right:7.5px; height:auto; float:left;}
</style>
<![endif]-->
<style type="text/css">
.left_2 { min-width:135px; width:21.5%; padding-left:7.5px; padding-right:7.5px; height:auto; float:left; }
</style>
代码然而,这似乎并没有兼得的IE6和IE7任何影响。我甚至设置的doctype严格,使这项工作的IE 7 ...什么错误?
编辑:这是你的意思吗?
<style type="text/css">
.left_2 { min-width:135px; width:21.5%; padding-left:7.5px; padding-right:7.5px; height:auto; float:left; }
</style>
<!--[if lte IE 6]>
<style type="text/css">
.left_2 {width:expression(document.body.clientWidth < 137? "135px": "21.5%") !important;}
</style>
<![endif]-->
我无法在未格式化的评论框中阅读得太好,但看起来是正确的。 – 2012-01-18 08:53:43
我试过..它仍然无法正常工作......我在那里做的是将顶部的所有现代浏览器的样式和正常样式下的IE 6的条件样式转换...是这样吗? – user481913 2012-01-18 09:07:35
请参阅问题的编辑部分...我将格式化的更改放在那里。 – user481913 2012-01-18 09:12:48