这里是我的CSS块:
@H_502_2@.actual-form table {
padding: 5px 0 15px 15px;
margin: 0 0 30px 0;
display: block;
width: 100%;
background: #f9f9f9;
border-top: 1px solid #d0d0d0;
border-bottom: 1px solid #d0d0d0;
}
我只想要IE 7,8和9“看”宽度:100%
最简单的方法是什么?
解决方法
最简单的方法是在HTML中使用
Internet Explorer conditional comment:
@H_502_2@<!--[if IE]>
<style>
.actual-form table {
width: 100%;
}
</style>
<![endif]-->
有许多黑客(例如underscore hack),你可以使用它,将允许你只定向IE在你的样式表,但它变得非常混乱,如果你想定位所有平台上的所有版本的IE。