如何在JQuery中设置链接访问的颜色 [英] How to set link visited color in JQuery
本文介绍了如何在JQuery中设置链接访问的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何设置"a"标签的访问颜色.这是我的代码
How do I set the visited color of an "a" tag. here is the code I have
theobj.find('a:visited').css('color', thejson.WidgetInfo.TextColor);
上面的代码不起作用.我只能使用内联CSS.有办法吗?
The above code is not working. I can only use inline css. Is there a way to do this?
推荐答案
我知道jQuery中没有访问过的选择器,但是雷米·夏普访问插件
There isn't a visited selector in jQuery that I am aware, but a similar question points to a plugin to handle this Remy Sharp Visited Plugin
这篇关于如何在JQuery中设置链接访问的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文