如何更改文本颜色在Disqus评论textarea? [英] How to change text color in Disqus comment textarea?

查看:148
本文介绍了如何更改文本颜色在Disqus评论textarea?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Disqus外部评论系统与Wordpress(作为一个WP插件),我试图自定义它与我的自定义CSS。

I'm using Disqus external comment system with Wordpress (as a WP plugin) and I'm trying to customize it with my custom CSS.

一切都很好,但我在替换textarea形式的默认文本颜色有问题。

Everything works great, but I have problems with replacing the default text color in the form textarea.

我试过:

#dsq-content .dsq-textarea .dsq-textarea-wrapper, #dsq-content .dsq-input-wrapper { color: red !important }

但我不成功,即使我targetet只是textarea它不工作。

but I was not successful, even when I targetet just "textarea" it not worked.

似乎javascript是在一起玩,因为有2个事件:当textarea集中和模糊。当有一个模糊,那么.placeholder-grey CSS类被添加到textarea,但是使用CSS的目标不起作用。

It seems that javascript is playing together because there are 2 events: when the textarea is focused and blurred. When there is a "blur" then .placeholder-grey CSS class is added to the textarea, but targeting that with CSS not worked as well.

Disqus文档非常差,所以我想出了所有这一切与代码检查。

Disqus has very poor documentation, so I figured out all this with code inspection.

任何想法将非常感激。

PS我没有在线的工作示例,您可以在使用Disqus的任何博客/网站上查看它,例如在自己的博客上: http://blog.disqus.com/post/974280725/achievement-unlocked-merging-profiles#disqus_thread

P.S. I don't have a working example online, you can see it on any blog/website where Disqus is used, for example on their own blog at: http://blog.disqus.com/post/974280725/achievement-unlocked-merging-profiles#disqus_thread

推荐答案

您链接到的网站在textarea之前有一个CSS样式块,如果您编辑此添加 color: f90; 它会将颜色从通常的黑色更改为橙​​色(在本示例中)。假设您也可以在文档的中添加。

The site you link to has a css style block just before the textarea, if you edit this to add color: #f90; it'll change the color from the usual black to orange (in this example). Presumably you could also add this in the head of the document instead.

如果您使用Chrome的开发人员工具或者,我想,Firebug for Firefox你可以编辑html / css到位看到效果(虽然它不会持续)看看你可以或需要做什么变化。

If you use something like Chrome's developer tools or, I imagine, Firebug for Firefox you can edit the html/css in place to see the effect live (although it won't persist) to see what changes you can, or need to, make.

这篇关于如何更改文本颜色在Disqus评论textarea?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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