html将div放到页面最底部,如何将div从页面顶部延伸到页面底部?

html, body {

height: 100%;

}

.page {

background: linear-gradient(#2d5aa4, #03637c);

height: 100%;

margin: 0;

background-repeat: no-repeat;

background-attachment: fixed;

position: relative;

}

.NavigationBar {

background: linear-gradient(to right, #636363, #4e4e4e);

position: absolute;

left: 0px;

top: 0px;

bottom: 0px;

width: 220px;

min-height: 100%;

z-index: 2;

font-family: BloggerSans;

font-size: 1.5em;

}

.NavigationBarBorder {

background: linear-gradient(to right, #292929, #171617);

position: absolute;

right: 0;

top: 0;

bottom: 0;

width: 10px;

min-height: 100%;

z-index: 3;

}

.MainParent {

position: relative;

min-height: 100%;

}

.NavigationTop {

background: linear-gradient(#636363, #4e4e4e);

position: absolute;

left: 220px;

width: calc(100vw - 220px);

height: 75px;

z-index: 1;

font-family: Jaapokki;

font-size: 2em;

}

.Main {

background: linear-gradient(#ffffff, #e8e8e8);

position: absolute;

top: 20vh;

bottom: 0px;

width: calc(100vw - 440px); /* set your width */

left: 220px;

margin-left: 90px; /*set your margin here */

min-height: 100%;

z-index: 4;

padding-left: 40px;

}

.MainBorder {

background: linear-gradient(#f79104, #e9720d);

position: absolute;

top: -10px;

left: 0;

width: 40px;

min-height: 100%;

}

h1 {

font-family: 'Jaapokki';

text-align: center;

font-size: 3em;

}

.Text {

font-family: 'BloggerSans';

font-size: 2em;

}

Table of content

Navigation

Title

Text

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值