如何使用我自己的CSS样式Twitter窗口小部件

问题描述:

我有一个Twitter Feed的自己的设计,我想使用自己的设计来设置默认Feed。有办法吗?

I have my own design for a Twitter feed and I want to style the default feed using my own design. Is there a way to do that?

问题是你不能使用CSS选择器,因为它只在加载页面后出现。

The issue is that you can't use the CSS selectors because it appears only after the loading the page.

请检查此图片,让您更了解我需要的内容

Please check this pic to give you more idea about what I need

谢谢,

好吧,你可以通过这样做自定义你的twitter部件:

Well, You can customize Your twitter widget by doing something like this:

默认代码

<a class="twitter-timeline" href="Pagelink" data-widget-id="Page ID">Tweets by @Test</a>

要删除页眉页脚,只需添加data-chrome =nofooter transparent noheader transparent像这样:

To remove Header footer, Just add data-chrome="nofooter transparent noheader transparent" and it will look something like this:

<a class="twitter-timeline" href="Pagelink" data-widget-id="Page ID" data-chrome="nofooter transparent noheader transparent">Tweets by @Test</a>

有关链接颜色,边框等更多自定义,请参阅本文。 https://dev.twitter.com/docs/embedded-timelines#customization

For more customization like link color, Borders etc refer to this article. https://dev.twitter.com/docs/embedded-timelines#customization

我希望这有助于:)