原本没边框的时,里面的内容刚好撑满div,
但是加了边框后,里面的内容就偏移了foot高度的一半!
我测试了下,是(margin-top:15px;
border-bottom:1px;)这里出问题,请问该如何修改!
#foot{
width:100%;
height:43px;
margin-top:15px;
border-bottom:1px;
border-bottom-style:solid;
border-top:1px;
border-top-style:solid;
background-color:#996699;
}
.zi{
text-align:center;
color:#646464;
}
Copyright @2006 Your Company | All rights reserved
Design by Gerhard Studios | W3C XHTML 1.1 | W3C CSS 2.0
<div id="foot"> <div class="zi"> Copyright @2006 Your Company | All rights reserved<br> Design by <a href="ss.html">Gerhard Studios</a> | <a href="ss.html">W3C XHTML 1.1</a> | <a href="ss.html">W3C CSS 2.0</a> </div> </div>
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号