如何使iframe宽度适合浏览器窗口。 [英] How to fit iframe width to fit browser window.

查看:132
本文介绍了如何使iframe宽度适合浏览器窗口。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





要求适合iframe宽度以适合窗口,以便只显示浏览器窗口滚动条。(iframe滚动条不应该适用)



使用了iframe属性scrolling =no,但是iframe有gridview,它有大数据,如果我使用滚动属性,gridview中出现的数据会被剪裁。



aftergoogling发现autoresize脚本虽然使用了该代码但它没有用完。



请帮忙并建议溶解。



提前感谢。

Hi,

have a requirement that to fit the iframe width to fit window,so that only browser window scrollbar should appear.(iframe scrollbars should not appaear)

have used iframe property scrolling="no",but the iframe has gridview which has large data,if i use the scrolling property the data that appears in gridview gets clipped.

aftergoogling have found autoresize script inspite of using that code it didn''t work out.

please help and suggest sollution for this.

thanks in advance.

推荐答案

试试以下链接。它显示了一个简单的jquery,你可以复制和粘贴

,它会调整iframe的大小。

http://webdevrefinery.com/forums/topic/8300-dynamically-resizing-an-iframe-to-fit -within-the-browser-window / [ ^ ]
try the below link. it shows a simple jquery that you can copy and paste
and it would resize the iframe.
http://webdevrefinery.com/forums/topic/8300-dynamically-resizing-an-iframe-to-fit-within-the-browser-window/[^]


这篇关于如何使iframe宽度适合浏览器窗口。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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