Categories: Web前端

IE6下溢出末尾一个字符的解决方案!

IE6下溢出末尾一个字符的解决方案!

 

html代码:

<div>
<img src=”http://www.lassaquarium.com/tpl/lassaquarium/images/about/qq.jpg” width=”167″ height=”30″ alt=”QQ客服 609200709″>
<img src=”http://www.lassaquarium.com/tpl/lassaquarium/images/about/phone.jpg” width=”204″ height=”30″ alt=”咨询电话 076022283438″>
<div>工厂地址 广东省 中山市 小榄镇 九洲基 第二工业区 兴洲路 乐事水族</div>
</div>

 

css代码:

.main-con .address {
width: 594px;
float: left;
height: 50px;
line-height: 50px;
color: #656565;
font-weight: bold;
font-size: 16px;
padding-left: 106px;
overflow: hidden;
}

将css代码修改为:

.main-con .address {
float: left;
height: 50px;
line-height: 50px;
color: #656565;
font-weight: bold;
font-size: 16px;
padding-left: 106px;
overflow: hidden;
}

也就是将其宽度值去掉,要保证换行,需要前一行的宽度正好抵满才行的,其它的就没有什么了的!

 

 

永夜