我正在http://swiftcarbon.com/carocap-the-journey-thus-far/的wordpress网站上使用Disqus注释插件>
如您所见,它的底线和锚标记使用的蓝色(rgb(0,0,238)
)比蓝色的位置(## 288ce4)深得多。我已经阅读了https://help.disqus.com/customer/portal/articles/545277上的文档,但是根据本文,Disqus应该为那些链接添加黑色,对此我很满意。
到目前为止,我尝试使用!important覆盖样式以更改无效的颜色。我什至尝试过,尽管我知道这是不行的,但还是要在$(window).load()方法上使用Javascript注入样式,以确保在js运行之前已加载Disqus部分。
css
#disqus_thread .publisher-anchor-color { color: black !important; }
js
$("#disqus_thread .publisher-anchor-color").css("color", "black !important");
或
$("#disqus_thread .publisher-anchor-color").removeClass("publisher-anchor-color);
有人遇到类似的问题并设法更改了样式。s
[我正在http://swiftcarbon.com/carocap-the-journey-thus-far/的wordpress网站上使用Disqus评论插件,如您所见,它使用的是深得多的蓝色(rgb(0,0,238 ))比蓝色(## ...
disqus线程位于iframe中。您不能从父页面更改框架内容的css。因此,这需要在Disqus方面解决-可能需要设置一个api选项。
The [[final