简体   繁体   English

Twitter Widget高度问题

[英]Twitter Widget Height Problem

I'm working on a new website that uses twitter's embeddable widget (see http://twitter.com/goodies/widgets ). 我正在使用Twitter的可嵌入窗口小部件的新网站上工作(请参阅http://twitter.com/goodies/widgets )。

You can control the widget's dimensions - width can be a fixed number of pixels or be set to 'auto'. 您可以控制小部件的尺寸-宽度可以是固定的像素数,也可以设置为“自动”。 Unfortunately I'm unable to convince the widget's height to be set to 'auto', which causes problems on long pages as large areas of white space appear under the fixed-height widget. 不幸的是,我无法说服将小部件的高度设置为“自动”,这会导致长页面出现问题,因为固定高度的小部件下方会出现较大的空白区域。

Has anyone experienced the same problem / found a resolution? 有没有人遇到过同样的问题/找到了解决方案?

Thanks in advance! 提前致谢!

I use this: (which I found elsewhere on the web, though have tested it in Safari (5.0.3), Chrome (9.0.597), and Firefox (3.6.12) (all MacOSX)): 我用这个:(尽管我已经在Safari(5.0.3),Chrome(9.0.597)和Firefox(3.6.12)(所有MacOSX)中对其进行了测试,但仍可以在网上找到它):

height: 'auto; -arnom-nl: 0'

Caveat: In some cases you may find the widget sometimes extends further than other content on the page. 注意:在某些情况下,您可能会发现小部件有时会比页面上的其他内容扩展得更多。

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

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