100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > html制作卡通图案代码 使用HTML和CSS3绘制基本卡通图案的示例分享 -电脑资料

html制作卡通图案代码 使用HTML和CSS3绘制基本卡通图案的示例分享 -电脑资料

时间:2019-02-15 15:17:57

相关推荐

html制作卡通图案代码 使用HTML和CSS3绘制基本卡通图案的示例分享 -电脑资料

/*围脖*/

.doraemon.choker{

width:230px;

height:20px;

background:#c40;

/*线性渐变让围巾看上去更自然*/

background:-webkit-gradient(linear,lefttop,leftbottombottom,from(#c40),to(#800400));

background:-moz-linear-gradient(centertop,#c40,#800400);

background:-ms-linear-gradient(centertop,#c40,#800400);

border:2pxsolid#000;

border-radius:10px;

position:relative;

top:-40px;

left:45px;

z-index:4;

}

/*铃铛*/

.doraemon.choker.bell{

width:40px;

height:40px;

_overflow:hidden;/*IE6hack*/

border:2pxsolid#000;

border-radius:50px;

background:#f9f12a;

background:-webkit-gradient(linear,lefttop,leftbottombottom,from(#f9f12a),color-stop(0.5,#e9e11a),to(#a9a100));

background:-moz-linear-gradient(top,#f9f12a,#e9e11a75%,#a9a100);

background:-ms-linear-gradient(top,#f9f12a,#e9e11a75%,#a9a100);

box-shadow:-5px5px10pxrgba(0,0,0,0.25);

position:absolute;

top:5px;

left:90px;

}

/*双横线*/

.doraemon.choker.bell_line{

width:36px;

height:2px;

background:#f9f12a;

border:2pxsolid#333;

border-radius:3px3px00;

position:absolute;

top:10px;

}

/*黑点*/

.doraemon.choker.bell_circle{

width:12px;

height:10px;

background:#000;

border-radius:5px;

position:absolute;

top:20px;

left:14px;

}

/*黑点下的线*/

.doraemon.choker.bell_under{

width:3px;

height:15px;

background:#000;

position:absolute;

left:18px;

top:27px;

}

/*铃铛高光*/

.doraemon.choker.bell_light{

width:12px;

height:12px;

border-radius:10px;

box-shadow:19px8px5px#fff;

position:absolute;

top:-5px;

left:5px;

opacity:0.7;

}

/*身子*/

.doraemon.bodys{

position:relative;

top:-310px;

}

/*肚子*/

.doraemon.bodys.body{

width:220px;

height:165px;

background:#07beea;

background:-webkit-gradient(linear,rightrighttop,lefttop,from(#07beea),color-stop(0.5,#0073b3),color-stop(0.75,#00b0e0),to(#0096be));

background:-moz-linear-gradient(rightrightcenter,#07beea,#0073b350%,#00b0e075%,#0096be100%);

background:-ms-linear-gradient(rightrightcenter,#07beea,#0073b350%,#00b0e075%,#0096be100%);

border:2pxsolid#333;

position:absolute;

top:265px;

left:50px;

}

/*白色肚兜*/

.doraemon.bodys.wraps{

width:170px;

height:170px;

background:#fff;

background:-webkit-gradient(linear,rightrighttop,leftbottombottom,from(#fff),color-stop(0.75,#fff),color-stop(0.83,#eee),color-stop(0.90,#999),color-stop(0.95,#444),to(#000));

background:-moz-linear-gradient(rightrighttop,#fff,#fff75%,#eee83%,#99990%,#44495%,#000);

background:-ms-linear-gradient(rightrighttop,#fff,#fff75%,#eee83%,#99990%,#44495%,#000);

border:2pxsolid#000;

border-radius:85px;

position:absolute;

left:72px;

top:230px;

}

/*口袋*/

.doraemon.bodys.pocket{

width:130px;

height:130px;

border-radius:65px;

background:#fff;

background:-webkit-gradient(linear,rightrighttop,leftbottombottom,from(#fff),color-stop(0.70,#fff),color-stop(0.75,#f8f8f8),color-stop(0.80,#eee),color-stop(0.88,#ddd),to(#fff));

background:-moz-linear-gradient(rightrighttop,#fff,#fff70%,#f8f8f875%,#eee80%,#ddd88%,#fff);

background:-ms-linear-gradient(rightrighttop,#fff,#fff70%,#f8f8f875%,#eee80%,#ddd88%,#fff);

border:2pxsolid#000;

position:absolute;

top:250px;

left:92px;

}

/*挡住口袋一半*/

.doraemon.bodys.pocket_mask{

width:134px;

height:60px;

background:#fff;

border-bottom:2pxsolid#000;

position:absolute;

top:259px;

left:92px;

}

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