CSS3 Gradient按钮demo

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>CSS3 Gradient</title>
	<style type="text/css">
		a{
			text-decoration:none;
			color:#63BDA8;
		}
		.button {
		    border: 1px solid #e9e9e9;
		    border-radius: 3px;
		    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
		    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
		    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
		    font-weight: bold;
		    text-align: center;
		    -moz-text-shadow: 1px 1px 0 #fff;
		    -webkit-text-shadow: 1px 1px 0 #fff;
		    text-shadow: 1px 1px 0 #fff;
		    white-space: nowrap;
		    display: block;
		    font-size: 22px;
		    margin: 2em auto;
		    padding: 9px 0 10px;
		    width: 340px;
		    background: #EFEFEF;
		    background: -moz-linear-gradient(top,#F7F7F7 0,#DFDFDF 100%);
		    background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#F7F7F7),color-stop(100%,#DFDFDF));
		    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#dfdfdf',GradientType=0 );
		}
		.button:hover {
		    border-color: #63BDA8;
		    color: #fff;
		    font-weight: normal;
		    text-decoration: none;
		    -moz-text-shadow: none;
		    -webkit-text-shadow: none;
		    text-shadow: none;
		    background: #95D9C8;
		    background: -moz-linear-gradient(top,#95D9C8 0,#63C8B8 100%);
		    background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#95D9C8),color-stop(100%,#63C8B8));
		    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#95D9C8',endColorstr='#63C8B8',GradientType=0);
		}
	</style>
</head>
<body>
	<a href="#quick-start" class="button">
        <span class="extra">Gradient 按钮</span>
    </a>
</body>
</html>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值