简体   繁体   English

如何增加Twitter feed小部件的宽度和字体大小?

[英]How do I increase the width and font-size of my twitter feed widget?

I have created a pure JS twitter feed widget, however, I cannot figure out how to increase the width of the feed to 960 pixels and bump up the font size. 我创建了一个纯JS Twitter Twitter提要小部件,但是,我无法弄清楚如何将提要的宽度增加到960像素并增大字体大小。

I have done a couple of google searches which suggested of adding some css to target and increase the size of the iframe 我已经做了几个Google搜索,建议添加一些CSS以定位并增加iframe的大小

#twitter-widget-0{width:960px;} /*this does not work*/

Here is a jsFiddle of my working feed. 这是我的工作提要的jsFiddle Thanks in advance! 提前致谢!

I found the answer to fixing the width: 我找到了固定宽度的答案:

in the css I added: 在我添加的CSS:

iframe[id^='twitter-widget-']{ width:100% !important;}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM