HTML
<div class="block">
<div class="element1">text text text text </div>
<div class="element2">text text text text text text text text text text text text text text text text text text text text text text text text text text text text</div>
</div>
CSS
.block{
background:#F00;
float: left;
height: 90px;
padding: 0 24px 0 0;
position: relative;
width: 256px;
}
.block .element1{
color: #000;
display: block;
float: left;
font-size: 32px;
height: 35px;
overflow: hidden;
padding: 25px 0 0;
text-align: right;
width: 100%;
}
.block .element2 {
color: #000;
display: block;
float: right;
font-size: 12px;
height: 14px;
line-height: 1.1;
margin: 15px 0 0;
max-width: 205px;
overflow: hidden;
padding: 0 0 0 15px;
text-align: right;
width: auto;
}
溢出:element2 类中的隐藏属性 => IE8、9、FF、Chrome、Safari、Opera 没有任何问题,但是如果我打开带有 IE7 文本的页面,则不会显示。将 position:relative attr 添加到块类(包装类),但没有任何变化(IE6 + IE7 CSS 问题与溢出:隐藏;-位置:相对;组合)我该如何解决这个问题? http://jsfiddle.net/L5Y57/