动态页面排列 [英] Dynamic Page Arrangement

查看:101
本文介绍了动态页面排列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的页面具有以下格式:
标题图片
下拉列表
下拉列表
按钮



动态标签
iframe

目前,iframe的高度是静态的.这样就产生了滚动条.我想将其设置为适合动态标签下方页面上的剩余空间.我尝试在页面上的javascript onload方法中获取标签的顶部像素,然后从页面的总高度取反,但是我无法获取标签的顶部值.

任何人都对如何动态调整iframe的高度以占据上面页面上的剩余高度有任何想法吗?

谢谢

Vijay

Hi,

My page has following format:
header image
dropdown list
dropdown list
Button



a dynamic label
Iframe

At present the Iframe height is static. so it produces the scrollbars. I want to set it to fit the remaining space on the page just below the dynamic label. I tried in javascript onload method on the page and getting the top pixel of the label and then negating it from page''s total height but I can not get label''s top value.

Can anyone have any idea on how to dynamically adjust the height of the iframe to occupy the remaining height on the page above?

Thanks

Vijay

推荐答案

使用CSS并将高度设置为100%.这意味着控件将占用所有可用的控件.

http://www.w3schools.com/css/ [
Use CSS and set the height to 100%. It means the control will take up all of the same available.

Study this, http://www.w3schools.com/css/[^]


这篇关于动态页面排列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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