小白初学 这个网页脚部布局一直写不好,所以来这上面求救,希望各位大神帮忙解决一下谢谢。
这是我写的HTML的布局 css没有写好 这里就不贴上来了。
如果可以的话 希望大神帮忙把HTML布局和CSS布局写一下 作个参考谢谢。
p class="footer_wrap">
html
<p class="footer"> <p class="container"> <ul class="text"> <li>公司电话:0731-5815220 公司传真:4515-585585845</li> <li>公司地址:湖南省长沙市南门口186号</li> <li>粤府新函[2001]87号 网络视听许可证1924057号</li> <li>国际质量监督举报电话:0755-83767606</li> <li>Copyrght @ 1998-2016 Tencent. All Rights Reservd</li> <li>Copyrght @ 1998-2016 Tencent. All Rights Reservd</li> </ul> <p class="qr_code"> <img src="http://placehold.it/120x120"> <p>扫一扫</p> </p> <p class="clear"></p> </p> </p>
css
*{margin: 0;padding: 0;list-style: none;} body{font-family: "微软雅黑";font-size: 14px;min-width: 1000px;} .container{width: 1000px;margin: 0 auto;position:relative;} .footer{width: 100%;background: #686868;color: #ffffff;padding: 30px 0} .text{float: left;width: 600px;} .text li{line-height: 30px;} .clear{clear: both;} .qr_code{width: 120px;text-align: center;position: absolute;top: 50%;height:145px;margin-top:-72px;right: 0}
效果