时间:2021-07-01 10:21:17 帮助过:43人阅读

1、button按钮(无样式)
<button>默认按钮</button>

2、button按钮(有样式)
HTML代码:
<button class="button">按钮</button>
CSS部分:
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
font-size: 16px;
cursor: pointer;
}
这样就可以做出一个含有样式的按钮啦,是不是很简单?
以上就是css怎么设置按钮样式的详细内容,更多请关注Gxl网其它相关文章!