小编And*_*ers的帖子

如何在html5中居中按钮?

如何在html5中居中按钮?通过修改css文件.我不想在html代码中使用中心标记.

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
}
Run Code Online (Sandbox Code Playgroud)

css html5 center button

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

button ×1

center ×1

css ×1

html5 ×1