我正在尝试制作这样的搜索框:
如您所见,我根本无法将它们对齐。
真正的问题是,我无法在所有浏览器中设置对齐。例如:我必须把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>