<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
Js Fiddle 错误:http://jsfiddle.net/mvckwoys/
由于某种原因,带有 form 的列表元素与所有其他 li 的高度相差 5px。我已经尝试将表单设置为 display:block
并尝试多次使用 margin:top;
以及许多其他 css 技巧,但似乎没有一个能让 Li 提高它被向下推的 5px。我有一种感觉,这与表单有关,但是因为所有 anchor 标记都可以正常工作。
非常感谢任何帮助,谢谢!
最佳答案
提高 <li>
使用 position:relative;
减少 5 个像素似乎对我有用:
<li class="form-li"><form></form></li>
.form-li {
position: relative;
top: -5px;
}
关于html - 形式低于所有其他李的李元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32055667/