嵌套框架根据内容大小调整大小 [英] Nested Frame Resize according to Content size

查看:120
本文介绍了嵌套框架根据内容大小调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是网络编程的新手,现在我有机会在我的asp.net网络应用项目中使用iframe。我想要根据其内容大小调整iframe是第二级框架。我如何实现它?有人想帮帮我吗?在此先感谢。

Hi,

I'm new in web programming and now i got a chance to use iframe in my asp.net web app project.I'd like to resize iframe which is second level frame according to its content size.How do i achieve it? Anyone wants to help me out? Thanks in advance.

推荐答案

使用代码隐藏或使用JavaScript或J查询提供CSS样式。



Ex 1.



Give CSS Style Using Code Behind or Using JavaScript or J-query.

Ex 1.

Quote:



(#iframe)。width(
("#iframe").width(


(#content)。width());
("#content").width()) ;


这篇关于嵌套框架根据内容大小调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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