1

I have an iframe on a page in the android browser. I iframe code is liek this:

<iframe src="somepage.html" style="height: 100px"></iframe>

No matter what I set the height to, the iframe always expands it's height to cover all the contents of somepage.html. This does not happen on other browser on my computer, iphone or blackberry devices.

Does anyone know what's going on?

4

1 回答 1

0

试试这个<iframe width="320" height="194" src="http://example.com"></iframe>。该链接以定义的高度很好地打开并滚动到页面底部。您正在链接的 html 页面中可能存在导致 iframe 高度扩展的内容。检查您的代码或在此处发布。

于 2012-06-08T09:00:30.433 回答