css怎么设定按钮样式
发布时间:09/01 来源:未知 浏览:
关键词:
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如何设定按钮样式的具体内容,更多请关注百分百源码网其它相关文章!