如何在asp.net页面中调整页脚,以便它自动调整页面底部 [英] How to adjust footer in asp.net page , so that it should adjust automatically bottom of the page

查看:293
本文介绍了如何在asp.net页面中调整页脚,以便它自动调整页面底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PLZ任何人都帮我如何将页脚设置到页面底部,以便自动调整..

plz any one help me how do i set the footer to bottom of the page so that it should adjust automaticaly ..

推荐答案





尝试在样式表中添加以下CSS属性,并在div类属性中调用它。



Hi,

Try to add the following CSS property in stylesheet and call it in your div class property.

.Footer
{
    background-position: center;
    clear: both;
    position: relative;
    z-index: 10;
    width: 100%;
}


页脚是使用CSS设置的。你需要使用CSS为HTML的body标签分配100%的高度,就是这样。网上有很多样品,但我在这里写了一小块。



html,身体{

身高:100 %;

}



希望它能运作。
The footer is set using the CSS. You need to assign 100% height to the body tag of HTML using CSS and that's it. There are a lot of samples available over the web but I am writing a small piece here.

html, body {
height: 100%;
}

hope it will work.


这篇关于如何在asp.net页面中调整页脚,以便它自动调整页面底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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