母版页-作为框架集 [英] Master Page - as Frameset

查看:55
本文介绍了母版页-作为框架集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用2010 Beta开发我的网站.
我能否拥有一个母版页,该母版页将显示并滚动到中间框架,并且页脚部分不应下降(因为在框架集的情况下发生这种情况).

如果是的话,请告诉我.

提前谢谢.
〜Amol:)

I am using 2010 beta to develop my site.
Can I have a master page, which will show, scroll to the middle frame and footer part should not go down (as it was happening in case of frameset).

If yes then please let me know.

Thanks in advance.
~ Amol :)

推荐答案

只需使用DIV标记并将溢出样式属性设置为滚动或自动.
Just use DIV tags and set the overflow style property to scroll or auto.
<div id='header' style='height:25px; width:100%;'>
</div>
<div id='content' style='overflow:auto; height:500px; width:100%;'>
<div>
<div id='footer' style='height:25px; width:100%;'>
</div>


当其中的内容超过指定的宽度和/或高度时,上面的内容" div将滚动.


The "content" div above will scroll when the content in it exceeds the specified width and/or height.


这篇关于母版页-作为框架集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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