HTML关于机器猫的小游戏,HTML5/CSS3 哆啦A梦 | 机器猫卡通肖像

CSS

语言:

CSSSCSS

确定

body {

background: #93B8CA;

}

.border-box {

box-sizing: border-box;

}

.clearfix {

content: "";

display: block;

clear: both;

}

.face_01 {

margin: 50px auto;

position: relative;

width: 420px;

height: 400px;

background-color: #1E90FF;

border: 2px solid #000;

border-radius: 47% 47% 45% 45%;

}

.face_02 {

position: absolute;

bottom: 0;

left: 30px;

width: 360px;

height: 300px;

background-color: #FFF;

border: 2px solid #000;

border-radius: 50% 50% 45% 45%;

}

.eye_box {

position: absolute;

top: -45px;

right: 90px;

width: 180px;

height: auto;

}

.big_eye_left,

.big_eye_right {

width: 90px;

height: 110px;

background-color: #FFF;

border: 2px solid #000;

border-radius: 46%;

}

.big_eye_left {

float: left;

}

.big_eye_right {

float: right;

}

.small_eye_left,

.small_eye_right {

position: absolute;

top: 60px;

width: 20px;

height: 20px;

background-color: #000;

border-radius: 50%;

}

.small_eye_left {

left: 60px;

}

.small_eye_right {

right: 60px;

}

.nose_01 {

position: absolute;

top: 47px;

left: 151px;

width: 50px;

height: 50px;

background-color: #FF0000;

border: 2px solid #000;

border-radius: 50%;

}

.nose_01_shadow {

position: absolute;

top: 10px;

left: 25px;

width: 15px;

height: 15px;

background-color: #FFF;

border-radius: 50%;

box-shadow: 0px 0px 2px 2px rgba(255, 255, 255, .4);

}

.nose_02 {

height: 130px;

width: 2px;

position: absolute;

top: 95px;

left: 176px;

border-left: 2px solid #000;

}

.mouth {

position: absolute;

top: 25px;

left: 60px;

height: 200px;

width: 240px;

border-bottom: 2px solid #000;

border-radius: 0 0 45% 45%;

}

.whisker_left,

.whisker_right {

position: absolute;

top: 60px;

width: 180px;

height: 180px;

}

.whisker_left {

left: 0;

}

.whisker_right {

right: 0;

}

.whisker_left span:nth-child(1),

.whisker_right span:nth-child(1) {

position: absolute;

top: 30px;

height: 60px;

width: 100px;

border-top: 2px solid #000;

}

.whisker_left span:nth-child(1) {

left: 30px;

-webkit-transform: rotate(20deg);

transform: rotate(20deg);

}

.whisker_right span:nth-child(1) {

right: 30px;

-webkit-transform: rotate(-20deg);

transform: rotate(-20deg);

}

.whisker_left span:nth-child(2),

.whisker_right span:nth-child(2) {

position: absolute;

top: 60px;

height: 60px;

width: 100px;

border-top: 2px solid #000;

}

.whisker_left span:nth-child(2) {

left: 35px;

}

.whisker_right span:nth-child(2) {

right: 35px;

}

.whisker_left span:nth-child(3),

.whisker_right span:nth-child(3) {

position: absolute;

top: 90px;

height: 60px;

width: 100px;

border-top: 2px solid #000;

}

.whisker_left span:nth-child(3) {

left: 50px;

-webkit-transform: rotate(-20deg);

transform: rotate(-20deg);

}

.whisker_right span:nth-child(3) {

right: 50px;

-webkit-transform: rotate(20deg);

transform: rotate(20deg);

}

.collar {

position: absolute;

top: 350px;

left: 50px;

width: 320px;

height: 50px;

background-color: #FF0000;

border: 2px solid #000;

border-radius: 30px;

}

.bell_01 {

position: absolute;

top: 15px;

left: 130px;

width: 60px;

height: 60px;

background-color: #FFFF00;

border: 2px solid #000;

border-radius: 50%;

}

.bell_02 {

position: absolute;

top: 17px;

left: 1px;

width: 53px;

height: 18px;

border-top: 2px solid #000;

}

.bell_03 {

position: absolute;

top: 22px;

left: 0;

width: 57px;

height: 23px;

border-top: 2px solid #000;

}

.bell_04 {

position: absolute;

top: 30px;

left: 20px;

width: 15px;

height: 10px;

background-color: #000;

border-radius: 50%;

}

.bell_05 {

position: absolute;

top: 37px;

left: 27px;

width: 30px;

height: 20px;

border-left: 2px solid #000;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值