【发布时间】:2013-11-15 16:28:24
【问题描述】:
我需要你的帮助。如何解决 2px 的差异?我真的不知道...
<nav id="navigation" class="col-full" role="navigation">
<ul class="nav fr parent">
<li id="menu-item-99" class="menu-item menu-item-type-custom">
<div id="search">
<form method="get" action="site" >
<input type="text" name="s" placeholder=" search..." />
<input type="submit" value="" name="submit" />
</form>
</div>
</li>
</ul>
</nav>
这里是 CSS:
#search {
float: left;
background: #000;
color: #fff;
}
#search input[type="text"]{
width: 95px;
background: #000;
color: #fff;
border: 0;
margin-left: 1px solid #fff;
#navigation {
float: right;
clear: none;
border: 0;
box-shadow: none;
width: 850px;
background: 0;
}
#navigation ul.nav {
float: right;
}
【问题讨论】:
-
你在使用重置样式表吗?
-
您是否使用了 CSS 重置?一个好的可以找到here。
-
你检查过
margins和paddings吗? -
白色竖线左边这个文本的容器是什么?
-
用小提琴重现它
标签: css google-chrome firefox difference