Web sitemde, bir metin girişinin yer tutucusu metin girişinde, yalnızca firefox'ta yüksek olarak konumlandırılmıştır. Diğer tüm tarayıcılarda dikey olarak ortalanır. ateş veGiriş yer tutucusu, firefox'ta dikey olarak hizalanmadı
Resim: aynı kod ile
In this jsfiddle that I made, dikey ateş ortalanır.
Web sitemde, jsfiddle'ın en üstünde olmadığı zaman, firefox'ta girişin en üstünde olmasına neden olabilir?
kodu:
html:
<div id="search-button">
<input id="search-input" placeholder="SEARCH KEY WORD"></input>
<div id="search-icon"></div>
</div>
css:
#search-button,
#search-icon {
font: 200 14px 'Helvetica Neue' , Helvetica , Arial , sans-serif;
border-radius: 6px;
height: 64px;
text-decoration: none;
color: #fff;
float: right;
margin-bottom: 20px;
line-height: 64px;
}
#search-button {
position: relative;
width: 100%;
border: 1px solid #00bfff;
}
input,
textarea,
button {
outline: none;
}
#search-input {
position: absolute;
height: 100%;
left: 20px;
right: 20px;
font-size: 14px;
text-transform: uppercase;
line-height: 100%;
width: calc(100% - 80px);
display: inline-block;
border: 0;
color: #00bfff;
}
#search-icon {
width: 64px;
height: 64px;
position: absolute;
top: 0;
right: 0;
background: url("../../assets/images/home_page/search-blue.svg") center no-repeat;
background-size: 40%;
}
Ne yazık ki bu, bu konuda Safari'ye bulaşıyor. Chrome, her iki durumda da iyi işleyebilir. –