开发者

Facebook likebox dark color scheme is unreadable

FB Like Box "Dark" Scheme now displays BLACK text on BLACK background [used to be white text]

see http://vitgravitas.c开发者_如何转开发om

i tried to modify the css of class .messageBody using js but even that isn't working for some reasons.

Any idea how to fix this. I can't shift to light color scheme as it doesn't suits my site template..


Haha, yah that's a bug in the Facebook Like Box.

You cannot style an iframe with an outside page. You need to inject a stylesheet into the iframe itself a-la @DrJokepu. How to apply CSS to iframe?

Just make a stylesheet:

body {
    color: white !important;
}

and inject it without jQuery (it's faster):

var cssLink = document.createElement("link") 
cssLink.href = "style.css"; 
cssLink.rel = "stylesheet"; 
cssLink.type = "text/css"; 
frames['frame'].document.body.appendChild(cssLink);

assuming you give the <fb:likebox> the id frame.

Good luck!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜