display: inline-block is not working in IE6、IE7, here is the solution:
code snippet:
.selector { display: inline-block }
.selector { *display: inline }
Note:you have to write two separate selector. If you code that in the same selector, it will not work. This is a bug of IE.

As to IE, display: inline-block only triggers the element of layout. For example, when you apply "display: inline-block" to div, it only assures it has the block feature, being able to set length, height etc. But it will not trigger a line break. 
The second selector will do this. 

This is exactly how it works. 

0 comments

Popular Posts

无觅相关文章插件,迅速提升网站流量