有很多的空白后页脚 [英] there is lots of white space after footer
本文介绍了有很多的空白后页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在创建一个带有两个iframe的html页面。左框架将用于导航目的,右框架将显示实际内容。但是在页脚下有很多空间。如何删除它?
I am creating an html page with two iframes. Left frame will be for navigational purpose and right one will display actual content. But there is a lot of space remained below the footer. How can i remove it?
以下是html代码:
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Orion ERP Help</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="header">
<img id="logo" src="images/logo.png" alt="Orion Logo">
</div>
<div id="navi">
<iframe id="menu" src="menu.html"></iframe>
</div>
<div id="frame">
<iframe id="content" name="content" src="about.html"></iframe>
</div>
<div id="footer">
© 2013 Intelligent ERP. All right reserved.
</div>
</body>
</html>
以下是css
body {
margin: 0;
padding: 0 0 0 17%;
}
#header {
background-color: #f8651c;
padding: 0;
margin: 0;
height: 130px;
}
#logo {
margin: 10px 0 0 10px;
padding: 0;
}
#menu {
position: absolute;
background-color: #f6f6f6;
top: 0;
left: 0;
height: 100%;
width: 17%;
border: 0;
border-right: 2px solid #a2a2a2;
}
#frame {
position: relative;
height: 100%;
}
#content {
position: relative;
top: 0;
left: 0;
border: 0;
height: 100%;
width: 100%;
overflow: hidden;
}
#footer {
position: absolute;
text-align: center;
font-size: 70%;
font-family: helvetica, sans-serif;
width: 83%;
bottom: 0;
}
推荐答案
身体类
body {
margin: 0;
padding: 0 0 0 0;
}
这篇关于有很多的空白后页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文