实际上,我正在尝试为应用程序实现菜单面板。我有一个列表项,我还有 li 下 ul 下的 li 项。但我注意到之间有一个行空间 li and li.Please help me in solving this.If you can see below code you will find one line space between Item3 and Sub-Items of Item3.有什么办法可以在不删除LI的情况下删除空行,因为Firefox不提供我在 IE8 中看到的预期结果。
<UL>
<LI>Item1</LI>
<LI>Item2</LI>
<LI>Item3</LI>
<LI>
<UL>
<LI>Item3.1</LI>
<LI>Item3.2</LI>
</UL>
</LI>
</UL>
最佳答案
使用 css 重置。 你用这个http://meyerweb.com/eric/tools/css/reset/
关于html - li 和 li 之间不需要的行空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17909907/