0
入力フィールドにはクリアテキストのアイコンがあります。あなたが入力した検索語句をクリアする入力フィールドの画像の整列
目的はGoogleに似ているinput要素内に表示[「X」]記号など
Anyhoo。 FF 4で完璧に動作します。 しかし、Chromeでは、少し離れています。 IEでは表示されません。
私はそれが私のためにz-indexといくつかの馬鹿げたコードの組み合わせだと思っています。
提案があります。 (入力エレメントの高さは36pxです)
.searchreset {
background: url('../images/cancel-sprite.png') no-repeat 0px 0px;
padding-left:34px;
padding-bottom: 8px;
margin-left: -30px;
margin-bottom: 0px;
width:24px;height:24px;
line-height:36px;
vertical-align:middle;
margin-top:2px;
}
.searchreset:hover {
background: url('../images/cancel-sprite.png') no-repeat 0px -24px;
padding-left:34px;
margin-left: -30px;
margin-bottom: 0px;
width:24px;height:24px;
vertical-align:middle;
cursor:pointer;
}