css定位button引用背景图片

Posted on 2015-04-08 11:36  小蕊同学  阅读(726)  评论(0编辑  收藏  举报

 1 <!doctype html>
 2 <html>
 3 <head>
 4 <meta charset="utf-8">
 5 <title>无标题文档</title>
 6 <style>
 7 .cc{
 8     background-color:transparent;
 9     border:none;
10     background-image:url(images/btn.png);
11     width:184px;
12     height:49px;
13     background-position:left top;
14     }
15 </style>
16 </head>
17 <body>
18 <button class="cc">用户注册</button>
19 </body>
20 </html>

 

 

Copyright © 2024 小蕊同学
Powered by .NET 9.0 on Kubernetes