php好看的按钮,分享三款美观的html按钮样式

c9ffd81a24a472e0c7cc4fd6ff432c85.png

样式如下:

按钮样式一:

b5fbfec4cb03b37aab12ce82cb1d95e9.png

#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; }

账户:

密码:

按钮样式二:

fd7da47682db6ab2b0abeb57421d249c.png

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

按钮样式三:

a8c6cfc0f969e7133a253f646dc9d22f.png

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;}

This is a blue button

This should be a green button

Big Text

Form Example

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值