如何设置所选菜单项的颜色? [英] How to set selected menu items back color?

查看:45
本文介绍了如何设置所选菜单项的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net中将所选菜单项设置为背景颜色?使用css或任何其他方法?

How can I set selected menu items back color in asp.net? Using css or any other method?

推荐答案

<html>
<head>
<style>
a:visited
{
background-color:yellow;
}
</style>
</head>
<body>

<a href="http://www.w3schools.com">W3Sschools</a>
<a href="http://www.google.com">Google</a>
<a href="http://www.wikipedia.org">Wikipedia</a>

<p><b>Note:</b> The :visited selector style links to pages you have already visited.</p>

</body>
</html>


这篇关于如何设置所选菜单项的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆