html5超酷苹果风格,CSS3制作苹果风格键盘特效

效果预览:

5647ca180d08d121fe64b10ff74d777a.png

html标签:

复制代码代码如下:

CSS3 KeyBoard
  • Q
  • W
  • E
  • R
  • T
  • Y
  • U
  • I
  • O
  • P
  • A
  • S
  • D
  • F
  • G
  • H
  • J
  • K
  • L
  • return
  • Z
  • X
  • C
  • V
  • B
  • N
  • M
  • !,
  • ?.
  • .?123
  • .?123

CSS代码:

复制代码代码如下:

@font-face {

font-family: 'icomoon';

src:url('http://upimage-img.stor.sinaapp.com/icomoon.eot');

src:url('http://upimage-img.stor.sinaapp.com/icomoon.eot?#iefix') format('embedded-opentype'),

url('http://upimage-img.stor.sinaapp.com/icomoon.woff') format('woff'),

url('http://upimage-img.stor.sinaapp.com/icomoon.ttf') format('truetype'),

url('http://upimage-img.stor.sinaapp.com/icomoon.svg#icomoon') format('svg');

font-weight: normal;

font-style: normal;

}

body {

background-color: #000;

}

ul, li {

list-style: none;

margin: 0;

padding: 0;

-webkit-user-select: none;

-moz-user-select: none;

-ms-user-select: none;

user-select: none;

}

ul {

width: 704px;

background: linear-gradient(60deg, rgba(158,180,185,1), rgba(222,157,193,1) 50%, rgba(169,156,173,1) 100%);

padding-left: 8px;

border-radius: 5px;

padding-top: 10px;

}

ul::after {

content: "";

display: table;

clear: both;

}

li {

font-family: "Vrinda";

width: 54px;

height: 50px;

line-height: 50px;

background-color: rgba(255,255,255,.9);

border-radius: 5px;

float: left;

text-align: center;

font-size: 24px;

vertical-align: text-top;

margin-right: 10px;

margin-bottom: 10px;

box-shadow: 0 1px 0 rgba(0,0,0,.5);

cursor: pointer;

position: relative;

}

li:active {

box-shadow: inset 0 1px 0 rgba(0,0,0,.5);

top:1px;

}

.icon {

font-family: "icomoon";

}

li:nth-child(11), li:nth-child(21), li:nth-child(22),

li:nth-child(32), li:nth-child(33), li:nth-child(35), li:nth-child(36) {

background: rgba(188,188,188,.5);

font-size: 20px;

}

li:nth-child(12) {

margin-left: 20px;

}

li:nth-child(21) {

width: 98px;

}

li:nth-child(n+22) {

width: 52px;

}

li:nth-child(32) {

width: 74px;

}

li:nth-child(33) {

width: 176px;

}

li:nth-child(34) {

width: 362px;

}

li:nth-child(35) {

width: 74px;

}

li:nth-child(31), li:nth-child(30) {

box-sizing: border-box;

padding-top: 14px;

}

li:nth-child(31) span, li:nth-child(30) span {

display: block;

line-height: 0.5;

}

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值