【发布时间】:2012-07-31 23:52:21
【问题描述】:
如何设置“a”标签的访问颜色。这是我的代码
theobj.find('a:visited').css('color', thejson.WidgetInfo.TextColor);
上面的代码不起作用。我只能使用内联 css。有没有办法做到这一点?
【问题讨论】:
-
需要更多信息,json.WidgetInfo.TextColor 的值是多少?
-
Oh..thejson.WidgetInfo.TextColor 等于黑色..当我运行程序时,文本是蓝色的
-
您确定该链接已被访问过吗?
标签: javascript jquery css