我页面上的页脚位于: http://cinicraft.com/site2.0/index.html
应该位于显示“CONTENT”的主要内容窗口下方,但我似乎无法将其置于显示“CiniCraft (c) 2013 All Rights Reserved”的页脚上方
这是我在 HTML5 中的代码:
<body>
<div>
<div class="newsBtn">
<h2>News</h2>
</div>
<div class="instaCraftBtn">
<h2>InstaCraft</h2>
</div>
<div class="youTubeBtn">
<h2>YouTube</h2>
</div>
<div class="contactBtn">
<h2>Contact</h2>
</div>
<div class="contentWindow">
CONTENT
</div>
</div>
</body>
<footer>
<div class="dock">
CiniCraft (c) 2013 All Rights Reserved
</div>
</footer>
这是内容和页脚的 CSS 代码:
div.contentWindow
{
float:right;
text-align:center;
background-color: #000000;
width:900px;
height:900px;
padding:1px;
margin:5px;
}
div.dock
{
overflow-y: hidden;
position:relative;
left:-10px;
background-color: black;
padding:1px;
border:5px solid black;
margin-top: 120px;
}
我怎样才能让页脚直接位于内容窗口下方? 谢谢
最佳答案
关于css - 无法让页脚停留在页面底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18472329/