问题描述
我见过链接下划线与
链接文本颜色不同的网站。我还看到了带有虚线下划线的链接(请参阅右上角的更改和所有Microsoft网站链接上的悬停
效果
$ b $本页的b例子:。
这些技术是否涉及背景图像/边框黑客,或者可以通过使用CSS直接设置下划线来完成
?
谢谢
I''ve seen websites where the link underline is a different colour to the
link text. I''ve also seen links with dotted underlines (see the hover
effect on the ''Change'' and ''All Microsoft Sites'' links at the top right
of this page for an example: http://support.microsoft.com/kb/253503).
Do these techniques involve background image/border hacks or can it be
done by directly styling the underline using CSS?
Thanks
推荐答案
是。
Yes.
编号你只需要进行文字修饰:下划线,它会为你提供一个与文本颜色相同的实线
行。 />
No. You just get text-decoration: underline, which gives you a solid
line the same colour as the text.
是的。
Yes.
你怎么说?
How do you tell?
编号你只需要进行文字修饰:下划线,它会给你一个坚实的
行,颜色和文字相同。
No. You just get text-decoration: underline, which gives you a solid
line the same colour as the text.
你可以做
a:悬停{
颜色:黄色;
border-bottom:dotted;
}
微软似乎对我做了什么。 (当然还有班级,
以及:活跃和:专注)。
干杯,H。
-
Hendrik Maryns
==================
提出聪明的问题,得到好的答案:
是的。
Yes.
我不会使用边框属性调用黑客,但是文字装饰属性的替代品。
-
Berg
I wouldn''t call using the border properties a hack, though, but an alternative to the text-decoration property.
--
Berg
这篇关于样式链接下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!