2011-08-08 78 views
0

我已经在我的Tumblr博客上实现了该小部件,并尝试更改小部件中的链接蓝色,但目前为止没有运气。这是他们便于代码:更改socialstatistics-widget上的链接颜色

链接到博客:http://eduardo-mateos.tumblr.com/

<div class="socialstatistics-widget" data-id="xxxxxxxxxx"></div><script>(function(d,t){var b=d.createElement(t),c=d.getElementsByTagName(t)[0];b.async=b.src="http://socialstatistics.com/widget/widget.min.js";c.parentNode.insertBefore(b,c);})(document,'script');</script> 

回答

0

尝试插入类似

.socialstatistics-widget a { 
color:#FF0000 !important; 
} 
在你的CSS文件

,或者风格标签,其中FF0000是您的自定义颜色。

+0

不,已经尝试过,没有运气。这里有一个链接,以便它可以帮助更好:http://eduardo-mateos.tumblr.com/ – edu

0
#socialstatisticswidget a:link, .socialstatisticswidgetrow a:link, #socialstatisticswidget a:visited, .socialstatisticswidgetrow a:visited, #socialstatisticswidget a:active, .socialstatisticswidgetrow a:active { 
    color: #FF0000 !important; 
} 

这一个应该工作。我发现它正好在小部件中,你应该在你的文件中重写这个css。