ホバーバグ(Firefoxの)に変換しますリスト項目にはホバー上にtransform:translateX(12px)
が適用され、テキストリンクには常に負のインデントが適用されます.2つの組み合わせは、アニメーション中にテキストの一部がホバー上に消えるFirefox固有のバグを作成します。負の値のためにそれ自身のパディングによって隠されています。負のテキストインデント、私はそれは、リスト項目のオンホバー効果を持つUL-リストです</p> <p>を構築したシンプルなメニューとFirefoxの特定のバグを経験してい
ここにJSフィドルとコードがありますが、私は欠けています-moz-cssですか?
https://jsfiddle.net/CultureInspired/9435v0vy/1/
<ul class="menu_desktop">
<li><a href="/">Home</a></li>
<li><a href="/">About</a></li>
<li><a href="/">Press</a></li>
<li><a href="/">Contact</a></li>
</ul>
CSS:
.menu_desktop {
list-style-type: none;
margin: 80px;
padding: 0;
}
.menu_desktop li {
background: #fff;
margin-bottom: 10px;
text-indent: -.8em;
text-transform: uppercase;
letter-spacing: 6px;
display: table;
-webkit-transition: all 0.2s ease-out;
-moz-transition: all 0.2s ease-out;
-ms-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
}
.menu_desktop li:hover {
transform: translateX(12px);
}
.menu_desktop a {
color: #000;
height: 100%;
padding: 8px;
display: block;
text-decoration:none;
}
:ここ
は修正(Firefoxの、クロム& IEで動作します)です。 – pol
本当に??この問題はフィドルと私のサイトで私にとって起こります。最初の2文字ほどの単語が約1秒間見えなくなります。それは私のハードウェアかOSでしょうか? –
'li'に 'text-indent'が本当に必要ですか? – GvM