Button UI Kit CSS3美丽Buttonbutton
2016-01-10 11:22
330 查看
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Button UI Kit</title>
<style type="text/css">
body{
background: #35393d;
}
.controls_ui{
width: 300px;
margin: 40px auto;
}
.button{
color: #0f1214;
text-shadow:0 1px 0 #484f58;
margin-bottom: 20px;
margin-right: 5px;
border:1px solid #202124;
box-shadow: 0 1px 0 #616a74 inset,0 1px 5px #212528;
background: -webkit-linear-gradient(top,#474d54,#2f363d);
background: -moz-linear-gradient(top,#474d54,#2f363d);
background: -ms-linear-gradient(top,#474d54,#2f363d);
background: -o-linear-gradient(top,#474d54,#2f363d);
background: linear-gradient(top,#474d54,#2f363d);
}
.button:nth-child(3n){
margin-right: 35px;
}
.button:hover{
background: -webkit-linear-gradient(top,#5b6167,#30373e);
background: -moz-linear-gradient(top,#5b6167,#30373e);
background: -ms-linear-gradient(top,#5b6167,#30373e);
background: -o-linear-gradient(top,#5b6167,#30373e);
background: linear-gradient(top,#5b6167,#30373e);
}
.button:active{
box-shadow: 0 1px #484c50;
background: -webkit-linear-gradient(top,#232930,#3c4249);
background: -moz-linear-gradient(top,#232930,#3c4249);
background: -ms-linear-gradient(top,#232930,#3c4249);
background: -o-linear-gradient(top,#232930,#3c4249);
background: linear-gradient(top,#232930,#3c4249);
}
.round,
.square{
width: 30px;
height: 30px;
}
.round,
.roundbig{
border-radius:15px;
}
.square,
.squarebig{
border-radius:5px;
}
.button:after{
display: block;
}
.round:nth-of-type(1):after,
.square:nth-of-type(4):after{
content: "\2716";
}
.round:nth-of-type(2):after,
.square:nth-of-type(5):after{
content: "\2714";
}
.round:nth-of-type(3):after,
.square:nth-of-type(6):after{
content: "\271a";
}
.round:nth-of-type(7):after,
.square:nth-of-type(10):after{
content: "\2717";
}
.round:nth-of-type(8):after,
.square:nth-of-type(11):after{
content: "\2713";
}
.round:nth-of-type(9):after,
.square:nth-of-type(12):after{
content: "\271d";
}
.roundbig,
.squarebig{
width: 80px;
height: 30px;
}
</style>
</head>
<body>
<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
<div class="page">
<section class="demo">
<div class="controls_ui">
<button type="button" class="button round"></button>
<button type="button" class="button round"></button>
<button type="button" class="button round"></button>
<button type="button" class="button square"></button>
<button type="button" class="button square"></button>
<button type="button" class="button square"></button>
<button type="button" class="button round"></button>
<button type="button" class="button round"></button>
<button type="button" class="button round"></button>
<button type="button" class="button square"></button>
<button type="button" class="button square"></button>
<button type="button" class="button square"></button>
<button type="button" class="button roundbig">Button</button>
<button type="button" class="button roundbig">Button</button>
<button type="button" class="button roundbig">Button</button>
<button type="button" class="button squarebig">Button</button>
<button type="button" class="button squarebig">Button</button>
<button type="button" class="button squarebig">Button</button>
</div>
</section>
</div>
</body>
</html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Button UI Kit</title>
<style type="text/css">
body{
background: #35393d;
}
.controls_ui{
width: 300px;
margin: 40px auto;
}
.button{
color: #0f1214;
text-shadow:0 1px 0 #484f58;
margin-bottom: 20px;
margin-right: 5px;
border:1px solid #202124;
box-shadow: 0 1px 0 #616a74 inset,0 1px 5px #212528;
background: -webkit-linear-gradient(top,#474d54,#2f363d);
background: -moz-linear-gradient(top,#474d54,#2f363d);
background: -ms-linear-gradient(top,#474d54,#2f363d);
background: -o-linear-gradient(top,#474d54,#2f363d);
background: linear-gradient(top,#474d54,#2f363d);
}
.button:nth-child(3n){
margin-right: 35px;
}
.button:hover{
background: -webkit-linear-gradient(top,#5b6167,#30373e);
background: -moz-linear-gradient(top,#5b6167,#30373e);
background: -ms-linear-gradient(top,#5b6167,#30373e);
background: -o-linear-gradient(top,#5b6167,#30373e);
background: linear-gradient(top,#5b6167,#30373e);
}
.button:active{
box-shadow: 0 1px #484c50;
background: -webkit-linear-gradient(top,#232930,#3c4249);
background: -moz-linear-gradient(top,#232930,#3c4249);
background: -ms-linear-gradient(top,#232930,#3c4249);
background: -o-linear-gradient(top,#232930,#3c4249);
background: linear-gradient(top,#232930,#3c4249);
}
.round,
.square{
width: 30px;
height: 30px;
}
.round,
.roundbig{
border-radius:15px;
}
.square,
.squarebig{
border-radius:5px;
}
.button:after{
display: block;
}
.round:nth-of-type(1):after,
.square:nth-of-type(4):after{
content: "\2716";
}
.round:nth-of-type(2):after,
.square:nth-of-type(5):after{
content: "\2714";
}
.round:nth-of-type(3):after,
.square:nth-of-type(6):after{
content: "\271a";
}
.round:nth-of-type(7):after,
.square:nth-of-type(10):after{
content: "\2717";
}
.round:nth-of-type(8):after,
.square:nth-of-type(11):after{
content: "\2713";
}
.round:nth-of-type(9):after,
.square:nth-of-type(12):after{
content: "\271d";
}
.roundbig,
.squarebig{
width: 80px;
height: 30px;
}
</style>
</head>
<body>
<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
<div class="page">
<section class="demo">
<div class="controls_ui">
<button type="button" class="button round"></button>
<button type="button" class="button round"></button>
<button type="button" class="button round"></button>
<button type="button" class="button square"></button>
<button type="button" class="button square"></button>
<button type="button" class="button square"></button>
<button type="button" class="button round"></button>
<button type="button" class="button round"></button>
<button type="button" class="button round"></button>
<button type="button" class="button square"></button>
<button type="button" class="button square"></button>
<button type="button" class="button square"></button>
<button type="button" class="button roundbig">Button</button>
<button type="button" class="button roundbig">Button</button>
<button type="button" class="button roundbig">Button</button>
<button type="button" class="button squarebig">Button</button>
<button type="button" class="button squarebig">Button</button>
<button type="button" class="button squarebig">Button</button>
</div>
</section>
</div>
</body>
</html>
相关文章推荐
- Assigning Host USB device to a Guest VM
- iOS 【UIKit-事件产生与传送 练习(重写hitTest和pointInside方法)】
- 专注UI——有用技术:模糊搜索
- IOS 之 UIActivityIndicatorView
- (转)Java中StringBuilder的清空方法比较
- UIButton详细的属性介绍
- SpriteKit 1-SKScene
- UITableview性能优化总结
- UITableView的使用(熟练使用)
- 利用简单的参数传递来实现单条查询的easyui-datagrid
- Leetcode: Range Sum Query 2D - Immutable
- UIView的一些知识
- [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platf...
- 如何处理UIVIew addsubview 不显示subview
- iOS开发之UIAlertController新版的使用方法
- 补充UIAlertView的一些知识,包括UIAlertViewStyleLoginAndPasswordInput和代理方法
- UITextField只能输入一位字符串
- UITextField和UITextView限制字数(包括中文)
- hdu 2560 buildings
- 【优先队列】:poj2442,Sequence