1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 如何用手机HTML制作哆啦a梦 CSS3绘制哆啦A梦(带鼠标动画)

如何用手机HTML制作哆啦a梦 CSS3绘制哆啦A梦(带鼠标动画)

时间:2022-02-26 11:54:06

相关推荐

如何用手机HTML制作哆啦a梦 CSS3绘制哆啦A梦(带鼠标动画)

body{

margin: 0;

background: lightblue;

}

/*哆啦A梦*/

.doa{

position: relative;

top: 100px;

}

.head{

margin: 0 auto;

width: 400px;

height: 350px;

background: #008ee3;

position: relative;

border-radius: 50% 50% 25% 25% / 55% 55% 45% 45%;

}

.head:hover .face>div:first-child div{

left: 0px;

transition: all 1s;

}

.head:hover .face>div:first-child div div{

left: 0px;

transition: all 1s;

}

.head:hover{

}

.face{

width: 310px;

height: 260px;

background: snow;

border-radius: 50% 50% 25% 25% / 55% 55% 45% 45%;

position: relative;

top: 90px;

left: 45px;

}

/*左眼眶*/

.face>div:f

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。