我试图做一个搜索框,这样的:什么是元素的问题对齐
,你看,我不能将它们排列在所有。
真正的问题是,我不能在所有浏览器中对齐。例如:我必须把2px top in chrome
和3px top in ff
我怎么能做到这一点:
这里是jfiddle
CSS:
.home_kadr { padding:10px; text-align:center;}
.home_search {
font-size:16px!important;
font-family:Arial!important;
font-style:italic!important;
padding:14px!important;
border:1px solid #d6bf99!important;
border-radius:2px!important;
margin:0px!important;
/*border-right:none!important;*/
border-top-right-radius:0px!important;
border-bottom-right-radius:0px!important;
}
.home_btn {
width:115px; height:42px;
background:url(../images/home_search.png);
display:inline-block;
font-family:'b koodak';
font-size:20px;
padding:8px 8px 0px 8px;
color:#FFF;
text-align:center;
border:none;
}
HTML:
<div class="home_kadr">
<div class="home_btn">جستجو</div><input type="text" name="fld_domainName" id="fld_domainName" class="wd-300 en home_search" />
</div>
您可以创建一个小提琴? – 2013-05-06 11:29:55
我编辑我的问题 – Pooya 2013-05-06 11:38:21
看到我的答案。这对我来说可以。 – 2013-05-06 11:46:04