html div布局 页脚,html - ASP.NET Div布局-CSS粘贴页脚 - 堆栈内存溢出

我首先道歉,因为我知道有人问过无数次,但是我尝试了所有发现的尝试都无济于事。 :(

仅供参考:我正在尝试使用母版页创建ASP.NET Web应用程序。 以下所有HTML代码均来自我的MP。

我有3个问题:

如何使页脚固定(失败的代码将在下面)?

在下面的设置中,我将div嵌套在页眉/内容等中。我假设这不会影响我将页脚粘贴到底部的史诗旅程吗?

最后,我在(body)标签之后紧跟着(form)标签。 我知道其他人提到他们感觉好像有一个问题。 我也觉得这与我粘住页脚的能力搞混了……但是也许这是我的Noob本能引起的一种非理性的恐惧……大声笑。

预先感谢您抽出宝贵的时间来帮助我!!

CSS

* {

margin: 0;

}

html,

body {

font-family: Arial;

font-size: 10pt;

background-color: #F2FDFF;

margin-left: auto;

margin-right: auto;

width: 800px;

text-align: center;

padding: 0;

height: 100%;

}

a {

outline: none;

}

#wholePg {

min-height: 100%;

position: relative;

}

#divNav-cont {

width: 100%;

position: fixed;

top: 0px;

}

#divNav {

background-color: #DBDBDB;

margin-bottom: 5px;

margin-top: 0;

height: 100px;

width: 800px;

text-align: center;

font: 0/0a;

vertical-align: middle;

display: table;

border-radius: 0px 0px 25px 25px;

}

#divBody {

width: 98%;

overflow: hidden;

white-space: nowrap;

margin-top: 110px;

margin-left: auto;

margin-right: auto;

margin-bottom: 10px;

padding-bottom: 40px;

}

#divFooter {

position: absolute;

bottom: 0;

width: 100%;

height: 30px;

border-radius: 25px 25px 0px 0px;

background-color: #DBDBDB;

}

HTML

Left

Blah blah etc.

RIGHT


Blabbity boo dee dah.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值