如何在html5中居中按鈕? 通過修改css文件。 我不想在html代碼中使用中心標籤。如何在html5中居中按鈕?
a.read{
padding:10px 20px;
font-size:14px;
line-height:20px;
background-color:#eba73c;
text-align:center;
color:#fff;
border-radius:5px;
text-decoration:none;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
text-align:center;
display:inline-block;
clear:both
}
爲中心的東西,你給'保證金:0汽車;'它 –
謝謝佩德羅,但我已經試過了。 http://jsfiddle.net/AndersN/YT4Uk/ – Anders