<input type="text" id="title" />
<input type="button" id="save_post" class="button" value="Submit" />
<div id="map" style="margin-top:10px;"></div>
由于某些原因,在呈现的页面中没有空白。无法将余量应用于分隔
第一个input
直接在第二个input
的左侧,而div
直接在两个下面,两者之间没有间隔。
我也试着将<br />
标签,但没有任何工作。
我在做什么错?
CSS
.button {
width: 80px;
height: 34px;
border: none;
background: #673491;
color: #fff;
float: left;
}
#title {
height: 30px;
width: 276px;
border: 1px solid #cbcbcb;
background: #fff;
text-indent: 10px;
color: #999999;
float: left;
}
#left {
width: 360px;
float: left;
margin-right: 7px;
padding-top: 24px;
}
#content {
width: 800px;
margin: 0 auto;
text-align: left;
}
body {
background: #f2f2f2;
text-align: center;
color: #999999;
font-family: arial, verdana;
font-size: 13px;
margin: 0;
padding: 0;
}
什么的价值'按钮'类? – 2011-06-15 00:35:36
还有其他的CSS在玩。我会发布。 – slandau 2011-06-15 00:37:12
你可能有一个浮动的问题与你的输入CSS - 检查我的答案与明确的:既 – Stevanicus 2011-06-15 00:42:44