【发布时间】:2013-02-12 05:36:36
【问题描述】:
请看这里:http://jsfiddle.net/5HYve/
<div style="position: fixed; top:0; right:0; width:300px; height: 100%; text-align:justify; overflow:hidden;" class="chat-container">
<iframe id="chat_1" style="width:300px;height:100%;" scrolling="no" frameborder="0" src="http://www.twitch.tv/chat/embed?channel=riotgames&hide_chat=myspace,facebook,twitter&default_chat=jtv"></iframe>
</div>
尝试调整结果象限的大小,您会发现 iframe 中的内容不会根据其父级的大小调整大小。我无权访问 iframe 中的代码。有没有办法做到这一点,还是我被 iframe 中写得不好的 CSS 所束缚?
【问题讨论】:
-
你可以调整 iframe 的大小没有问题,但不能保证里面的内容会“响应”。如果不是那么你的,有点卡住了