IFRAME在Android浏览器不尊重CSS的高度? [英] iframe in android browser does not respect css height?

查看:215
本文介绍了IFRAME在Android浏览器不尊重CSS的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android浏览器在页面上的iframe中。我iframe的code是liek这样的:

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>

不管是什么我设置的高度时,iframe始终扩展它的高度覆盖somepage.html的所有内容。这不会发生在我的电脑上,iPhone或黑莓设备的其它浏览器。

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?

推荐答案

试试这个&LT; IFRAME WIDTH =320HEIGHT =194SRC =htt​​p://example.com&GT ;&LT; / IFRAME&GT; 。链路与所定义的高度和滚动到的页面的底部打开井。可能有东西在你的链接,这是造成的iframe的高度,扩大html页面。检查你的code或张贴在这里。

Try this <iframe width="320" height="194" src="http://example.com"></iframe>. The link opens well with the defined height and scrolls to the bottom of the page. There might be something in the html page your are linking which is causing the iframe height to expand. Check your code or post here.

这篇关于IFRAME在Android浏览器不尊重CSS的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆