
样式如下:
(推荐教程:html视频教程)
按钮样式一:

立即学习“前端免费学习笔记(深入)”;
#login_click{ margin-top:32px; height:40px;}#login_click a { text-decoration:none;background:#2f435e;color:#f2f2f2;padding: 10px 30px 10px 30px;font-size:16px;font-family: 微软雅黑,宋体,Arial,Helvetica,Verdana,sans-serif;font-weight:bold;border-radius:3px;-webkit-transition:all linear 0.30s;-moz-transition:all linear 0.30s;transition:all linear 0.30s;} #login_click a:hover { background:#385f9e; }
按钮样式二:

Image Rollover with CSS a.button { background:url(rss-feed-img.png) repeat 0px 0px; width: 123px; height: 44px; display: block; }a.button span { display: none; }a.button:hover { background: url(rss-feed-img.png) repeat 0px -44px; } RSS Feeds
按钮样式三:

Untitled Document body { padding: 20px; font-size: 0.85em; font-family: georgia, serif; }.btn { display: block; position: relative; background: #aaa; padding: 5px; float: left; color: #fff; text-decoration: none; cursor: pointer; }.btn * { font-style: normal; background-image: url(btn2.png); background-repeat: no-repeat; display: block; position: relative; }.btn i { background-position: top left; position: absolute; margin-bottom: -5px; top: 0; left: 0; width: 5px; height: 5px; }.btn span { background-position: bottom left; left: -5px; padding: 0 0 5px 10px; margin-bottom: -5px; }.btn span i { background-position: bottom right; margin-bottom: 0; position: absolute; left: 100%; width: 10px; height: 100%; top: 0; }.btn span span { background-position: top right; position: absolute; right: -10px; margin-left: 10px; top: -5px; height: 0; }* html .btn span,* html .btn i { float: left; width: auto; background-image: none; cursor: pointer; }.btn.blue { background: #2ae; }.btn.green { background: #9d4; }.btn.pink { background: #e1a; }.btn:hover { background-color: #a00; }.btn:active { background-color: #444; }.btn[class] { background-image: url(shade.png); background-position: bottom; }* html .btn { border: 3px double #aaa; }* html .btn.blue { border-color: #2ae; }* html .btn.green { border-color: #9d4; }* html .btn.pink { border-color: #e1a; }* html .btn:hover { border-color: #a00; }p { clear: both; padding-bottom: 2em; }form { margin-top: 2em; }form p .btn { margin-right: 1em; }textarea { margin: 1em 0;}
相关推荐:html教程
以上就是分享三款美观的html按钮样式的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1548593.html
微信扫一扫
支付宝扫一扫