html button 居中排列


 

 

 

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
.foot{width: 100%; height: 30px; border: 1px solid #d2d2d2; text-align: center;}
.foot ul{display: inline; margin-left: -10px;}
.foot ul li{display: inline-block; margin-left: 10px; line-height: 30px;}
.foot ul li a{background-color: #900; color: #fff;line-height: 20px;padding: 3px 5px;}
</style>
</head>
<body>
<div class="foot">
<ul>
<li><a href="" class="button">提交</a></li>
<li><a href="" class="button">提交</a></li>
<li><a href="" class="button">提交</a></li>
<li><a href="" class="button">提交</a></li>
</ul>
</div>
</div>
</body>
</html>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM