ie6 不支持max-width , 但可以通过 expression 来实现,代码如下:
<span style=" border:1px solid red; display:inline-block; max-width:100px; _width:expression(eval(this.offsetWidth>100?100:this.offsetWidth)); overflow:hidden; /*重要*/ "> <a>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</a> </span>