html body设置了高度100%溢出,css - html, body height 100% - Stack Overflow

I have a problem with the container-about div.

Its height is 100% because I want div occupies the entire width and height after header div.

The problem is that now I do not scroll to show the full text.

We would also like the ability to display text with scroll for tablet and smartphone.

Thanks for Your help.

text comes here.....

........

css:

* {

margin: 0 auto;

padding: 0;

}

html, body {

height: 100%;

overflow: hidden;

}

body {

font-size: 12px;

line-height: 1.5;

background: #000;

font-weight: 400;

}

.header {

top: 0px;

left: 0px;

width: 100%;

height: 100px;

position: fixed;

background: gray;

opacity: 0.8;

}

.header-container {

width: auto;

height: 100px;

margin: 0 10% 0 10%;

text-align: center;

}

.container-wrapper {

width: 100%;

height: 100%;

}

.container-about {

margin: 100px auto;

padding-bottom: 2%;

width: 100%;

height: 100%;

background: #FFF;

position: relative;

}

.container-about h3 {

padding: 0 10% 5% 10%;

font-family: 'Verdana', sans-serif;

font-size: 12px;

line-height: 150%;

font-weight: 400;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值