简体   繁体   中英

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.

I have done a couple of google searches which suggested of adding some css to target and increase the size of the iframe

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

Here is a jsFiddle of my working feed. Thanks in advance!

I found the answer to fixing the width:

in the css I added:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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