css绘制一个熊猫宝宝效果代码
代码语言:html
所属分类:布局界面
代码描述:css绘制一个熊猫宝宝效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; margin: 0; padding: 0; } body { height: 100%; background-size: cover; background-repeat: no-repeat; width: 100%; } .container { position: relative; margin: auto; height: 400px; width: 600px; background: none; margin-top: 25%; } .head { position: absolute; height: 30%; width: 24%; top: 25%; left: 37.5%; border-radius: 40%; border-top-left-radius: 50%; border-top-right-radius: 50%; z-index:0; background: white; border: 1px solid black; } /*Nose*/ .nose { position: absolute; border: 1px solid black; height: 3.5%; width: 4%; top: 42.5%; left: 47.5%; border-radius: 40%; border-top-left-radius: 50%; border-top-right-radius: 50%; background: black; } .noseglare { position: absolute; height: 1%; width: 1.5%; top: 43%; left: 49.1%; border-radius: 50%; background: white; } /*Left Eye */ .outer-eye-left { position: absolute; border: 1px solid black; height: 16%; width: 10%; top: 30%; left: 39%; border-top-left-radius: 55%; border-top-right-radius:50%; border-bottom-right-radius: 65%; border-bottom-left-radius: 40%; background: black; z-index: 4; } .inner-eye-left { position: absolute; height: 30px; width: 30px; top: 34%; left: 42%; border-radius: 50%; z-index: 5; background: white; } .eye-left-pupil { position: absolute; border: 1px solid black; hei.........完整代码请登录后点击上方下载按钮下载查看
网友评论0