li中a被设置为display:block转为块级元素时的兼容问题

假如li标签中有a标签,而a标签被设置display:block的话,IE跟FF中会产生不兼容(IE会无端端增加a的padding)。

解决方法:设置被block化之后的a标签height属性

3 Responses to li中a被设置为display:block转为块级元... »

  1. baljeans 评论 2008-11-07 19:53

    妈的 我说呢。。。

    回复

    joe 回复 十一月 7th, 2008 at 21:03

    :?: ???

    回复

  2. beck 评论 2009-03-07 22:05

    :lol: 非常好,我知道了,谢谢

    回复

Leave a Reply

Email address is not published

You should say a Chinese word to pass spam check. If you can not input Chinese, just copy 你好 and paste them into comment text box.