如何在选中时突出显示链接 [英] How to highlight the link when it is selected
本文介绍了如何在选中时突出显示链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当用户点击母版页中的链接时,我正在重定向到另一个页面。
我想在点击时突出显示链接
解决方案
< blockquote>我希望你知道一些css属性,这有助于突出显示链接如下。
a:悬停 {
background-color < span class =code-keyword>: 绿色;
}
检查一下: CSS样式链接 [ ^ ]
我认为他需要改变颜色或点击后改变css链接
所以
a:焦点/ a:活跃会做。
检查下面的小提琴:
小提琴 [ ^ ]
我希望这就是你所需要的。
请回复你的疑问。
谢谢。
I am redirecting to another page when user clicked the link in master page.
I want to highlight link when it is clicked
解决方案
I hope you are aware of some css properties which helps to highlight the link as follows.
a:hover { background-color: Green; }
Check this out: CSS Styling Links[^]
I think he needs the color to change or css change after click of the link
So
a:focus/a:active would do.
Check the below fiddle:
Fiddle[^]
I hope this is what you need.
Please post back your queries if any.
Thanks.
这篇关于如何在选中时突出显示链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文