2

我想在网站中插入官方Twitter 小部件

所以,我不能在这个选项页面上选择任何背景颜色。
是否有可能将背景颜色从白色变为透明?

4

1 回答 1

1

I have the same problem. My solution was to alter the css of the twitter widget after the page is loaded using jQuery.

    $(window).load(function() {
        $("iframe.twitter-timeline")
             .contents()
             .find(".timeline")
             .css("background-color", "transparent");
    });

Downside of this is that until the page is loaded you get the white background so I placed the widget inside the container that is hidden and in the page load event after I replace the css I show the container.

于 2013-02-19T19:16:17.783 回答