基本信息
源码名称:常用按钮css示例代码下载
源码大小:0.05M
文件格式:.zip
开发语言:CSS
更新时间:2016-04-15
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
<!DOCTYPE html> <html> <head> <meta content="测试dome" name="Keywords"> <meta content="测试dome" name="Description"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>按钮</title> <style> * { margin-bottom: 50px !important; } </style> </head> <body> <!--*******button******--> <button class="button-i">button</button> <style> .button-i { background-color: orange; width: 150px; height: 40px; line-height: 40px; border-radius: 6px 6px; -webkit-border-radius: 6px 6px; -moz-border-radius: 6px 6px; -o-border-radius: 6px 6px; cursor: pointer; outline: none; margin: 0; border: none; font-size: 16px; color: #fff; } </style> <!--*******div******--> <div class="button-j">div</div> <style> .button-j { background-color: orange; width: 150px; height: 40px; line-height: 40px; text-align: center; border-radius: 6px 6px; -webkit-border-radius: 6px 6px; -moz-border-radius: 6px 6px; -o-border-radius: 6px 6px; cursor: pointer; outline: none; margin: 0; border: none; font-size: 16px; color: #fff; } </style> <!--*******button带点击效果******--> <button class="button-k">button</button> <style> .button-k { display: block; background-color: rgba(219,87,5,1); position: relative; width: 150px; text-align: center; outline: none; cursor: pointer; margin: 0; padding: 5px; border: none; -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px; -webkit-box-shadow: 0px 4px 0px rgba(219,31,5,1), 0px 4px 6px rgba(0,0,0,.7); -moz-box-shadow: 0px 4px 0px rgba(219,31,5,1), 0px 4px 6px rgba(0,0,0,.7); box-shadow: 0px 4px 0px rgba(219,31,5,1), 0px 4px 6px rgba(0,0,0,.7); -webkit-transition: all .1s ease; -moz-transition: all .1s ease; -ms-transition: all .1s ease; -o-transition: all .1s ease; transition: all .1s ease; font-family: 'Yanone Kaffeesatz'; font-weight: 700; font-size: 16px; text-decoration: none; color: rgba(255,255,255,1); } .button-k:active { -webkit-box-shadow: 0px 3px 0px rgba(219,31,5,1), 0px 3px 6px rgba(0,0,0,.9); -moz-box-shadow: 0px 3px 0px rgba(219,31,5,1), 0px 3px 6px rgba(0,0,0,.9); box-shadow: 0px 3px 0px rgba(219,31,5,1), 0px 3px 6px rgba(0,0,0,.9); position: relative; top: 2px; } </style> <!--*******button点击效果******--> <button class="button-l">button</button> <style> .button-l { background-color: orange; width: 150px; height: 40px; line-height: 40px; cursor: pointer; outline: none; padding-left: 18px; background-image: url(images/close.png); background-repeat: no-repeat; background-position: 18px center; border-radius: 6px 6px; -webkit-border-radius: 6px 6px; -moz-border-radius: 6px 6px; -o-border-radius: 6px 6px; margin: 0; border: none; font-size: 16px; color: #fff; } </style> <div> <a href="#" class="button-m">Blue</a> <a href="#" class="button-m bigrounded">Rounded</a> <a href="#" class="button-m medium">Medium</a> <a href="#" class="button-m small">Small</a> <br><br> <input class="button-m" type="button" value="Input Element"> <button class="button-m">Button Tag</button> <span class="button-m">Span</span> <div class="button-m">Div</div> <p class="button-m">P Tag</p> <h3 class="button-m">H3</h3> </div> <style> .button-m { display: inline-block; zoom: 1; *display: inline; vertical-align: baseline; margin: 0 2px; outline: none; cursor: pointer; text-align: center; text-decoration: none; font: 14px/100% Arial, Helvetica, sans-serif; padding: .5em 2em .55em; text-shadow: 0 1px 1px rgba(0,0,0,.3); -webkit-border-radius: .5em; -moz-border-radius: .5em; border-radius: .5em; -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2); -moz-box-shadow: 0 1px 2px rgba(0,0,0,.2); box-shadow: 0 1px 2px rgba(0,0,0,.2); color: #d9eef7; border: solid 1px #0076a3; background: #0095cd; background: -webkit-gradient(linear, left top, left bottom, from(#00adee), to(#0078a5)); background: -moz-linear-gradient(top, #00adee, #0078a5); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00adee', endColorstr='#0078a5'); } .button-m:hover { background: #007ead; background: -webkit-gradient(linear, left top, left bottom, from(#0095cc), to(#00678e)); background: -moz-linear-gradient(top, #0095cc, #00678e); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0095cc', endColorstr='#00678e'); } .button-m:active { color: #80bed6; background: -webkit-gradient(linear, left top, left bottom, from(#0078a5), to(#00adee)); background: -moz-linear-gradient(top, #0078a5, #00adee); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0078a5', endColorstr='#00adee'); } .button-m:hover { text-decoration: none; } .button-m:active { position: relative; top: 1px; } .bigrounded { -webkit-border-radius: 2em; -moz-border-radius: 2em; border-radius: 2em; } .medium { font-size: 12px; padding: .4em 1.5em .42em; } .small { font-size: 11px; padding: .2em 1em .275em; } </style> <!--*******button图片******--> <input type="image" src="images/button.png" class="button-n" /> <style> .button-n { outline: none; background-size: cover; } </style> </body> </html>