与IE的li元素的边距 [英] margins on li elements with IE

查看:66
本文介绍了与IE的li元素的边距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我注意到IE似乎在< li>上设置了某种默认边距元素

和摆脱它们的唯一方法似乎是放弃负利润。

更糟糕的是,IE5和IE6似乎有不同的默认值。是否有优惠的方式去除这些愚蠢的边缘?


问候,

托马斯

Hello,

I noticed that IE seems to put some kind of default margins on <li> elements
and the only way to get rid of them seems to be asigning negative margins.
To make things worse, IE5 and IE6 seem to have different defaults. Is there
an elegant way to remove these stupid margins?

Greetings,
Thomas

推荐答案

Thomas Mlynarczyk写道:
Thomas Mlynarczyk wrote:
我注意到IE似乎在< li>上设置了某种默认边距。元素
和摆脱它们的唯一方法似乎是放弃负边缘。
更糟糕的是,IE5和IE6似乎有不同的默认值。是否有一种优雅的方法来消除这些愚蠢的边缘?
I noticed that IE seems to put some kind of default margins on <li> elements
and the only way to get rid of them seems to be asigning negative margins.
To make things worse, IE5 and IE6 seem to have different defaults. Is there
an elegant way to remove these stupid margins?



http://www.alistapart.com/articles/taminglists/

-

Spartanicus



http://www.alistapart.com/articles/taminglists/

--
Spartanicus


Spartanicus写道:
Spartanicus wrote:
Thomas Mlynarczyk写道:

Thomas Mlynarczyk wrote:

I注意到IE似乎在< li>上放置了某种默认边距。元素
和摆脱它们的唯一方法似乎是放弃负边缘。
更糟糕的是,IE5和IE6似乎有不同的默认值。是否有一种优雅的方法来消除这些愚蠢的边缘?
I noticed that IE seems to put some kind of default margins on <li> elements
and the only way to get rid of them seems to be asigning negative margins.
To make things worse, IE5 and IE6 seem to have different defaults. Is there
an elegant way to remove these stupid margins?


http://www.alistapart.com/articles/taminglists/




简而言之:应用''border-bottom'' *或*删除元素之间的所有空格




-

Anne van Kesteren

< http://www.annevankesteren.nl/>



In short: applying a ''border-bottom'' *or* removing all the spaces
between the elements.

--
Anne van Kesteren
<http://www.annevankesteren.nl/>


Anne van Kesteren写道:
Anne van Kesteren wrote:
http://www.alistapart.com/articles/taminglists /


简而言之:应用''border-bottom''*或*删除元素之间的所有空格


In short: applying a ''border-bottom'' *or* removing all the spaces
between the elements.




教你如何钓鱼。


-

Spartanicus



Teach how to fish.

--
Spartanicus


这篇关于与IE的li元素的边距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆