我有三个div:头部,脚和文本框。 头和脚的div是固定位置,第三个div是部分固定的(margin-top)。动态div底部
我的问题是:如何更改文本框的div底部以修复不同的显示器大小?我不能使用100%的高度,因为它挂在步行div。在这个主页上,我不使用滚动条,因为backgrounk正在改变图像文件。我希望能够让边缘底部保持与显示器底部的距离。
<html>
<head>
<title>Div bottom</title>
<style>
.head{
position:absolute;
clear:both;
top:0px;
right:0px;
float:right;
width:100%;
height:80px;
background-color:grey;
}
.foot {
position:fixed;
clear:both;
height:35px;
right:0px;
float:right;
width:100%;
background-color:grey;
bottom:0px;
}
.textbox {
overflow: hidden;
position: relative;
padding:20px;
border: 1px solid gray;
background-color:red;
z-index:0;
text-align:justify;
color:black;
line-height: 2em;
border-radius: 3px;
margin-top:100px;
width:910px;
margin-left: auto;
margin-right:auto;
}
</style>
</head>
<body>
<div class="head">HEAD</div>
<div class="textbox">?</div>
<div class="foot">FOOT</div>
</body>
</html>