アンカータグに-webkit-background-clip: text,border
とcolor: transparent
を使用しています。下線が決して見えなくなるようです。背景装飾にテキスト装飾を含めるには:text;効果?
私がしたいのは、背景のクリッピングにテキストの装飾を含めることです。
.background-clip {
background: url(images/index-background.jpg) repeat top center fixed;
-webkit-background-clip: text,border;
color: transparent;
}
.background-clip a {
color: transparent;
}
.background-clip a:hover {
text-decoration: underline;
-webkit-text-decorations-in-effect: underline; /* doesn't seem to do anything, I am having trouble finding definitive documentation on this */
}
および関連HTML::
<div class="background-clip"><a href="#">Imagine a lot of text here</a></div>
私はWebKitのCSSプロパティを徹底的に文書を見つける多くの問題が生じています
は、ここに私のCSSです。誰かが私のアンカータグのホバーにテキストの下線を表示させるために何ができるのか知っていますか?
私が望むのは、テキストだけでなく下線にもクリップする背景です。 -webkit-background-clip:テキストは、透明に設定されているときにテキスト上にイメージを描きます。そのクールな効果です。 –