一个div布局实现菠萝狗效果代码
代码语言:html
所属分类:布局界面
代码描述:一个div布局实现菠萝狗效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { background-color: black; display: grid; height: 100vh; place-content: center; } div { margin-top: 3rem; background-color: #f3d9b1; border-radius: 90% 90% 70% 70%; height: 400px; position: relative; width: 350px; background-image: /* ears */ radial-gradient(ellipse at bottom, #c39a75 10%, white 60%, transparent 62%), radial-gradient(ellipse at bottom, #c39a75 10%, white 60%, transparent 62%), radial-gradient(ellipse at bottom, #c4a484 60%, transparent 61%), radial-gradient(ellipse at bottom, #c4a484 60%, transparent 61%), /* mouth */ radial-gradient(circle at top, transparent 38%, black 40.5%, transparent 43%), radial-gradient(circle at top, transparent 38%, black 40.5%, transparent 43%), /* nose */ radial-gradient(ellipse, black 70%, transparent 72%), /* paw */ radial-gradient(circle at right, transparent 38%, black 40.5%, transparent 43%), radial-gradient(circle at right, transparent 38%, black 40.5%, transparent 43%), radial-gradient(circle at left, transparent 38%, black 40.5%, transparent 43%), radial-gradient(circle at left, transparent 38%, black 40.5%, transparent 43%), radial-gradient(ellipse, #c4a484 70%, transparent 72%), radial-gradient(ellipse, #c4a484 70%, transparent 72%), /* stripes ltr*/ linear-gradient(20deg, transparent 49.9%, #000 50%, transparent 50.3%), linear-gradient(20deg, transparent 49.9%, #000 50%, transparent 50.3%), linear-gradient(20deg, transparent 49.9%, #000 50%, transparent 50.3%), /* stripes rtl */ linear-gradient(-20deg, transparent 49.9%, #000 50%, transparent 50.3%), linear-gradient(-20deg, transparent 49.9%, #000 50%, transparent 50.3%), linear-gradient(-20deg, transparent 49.9%, #000 50%, transparent 50.3%), /* face */ radial-gradient(circle, white 70%, transparent 71%); background-position: /* ears */ 64% 12%, 36% 12%, 36% 11%, 64% 11%, /* mouth */ 46.5% 43%, 54% 43%, /* nose */ 50% 38%, /* paw */ 26% 55%, 30% 55%, 74% 55%, 70% 55%, 30% 55%, 70% 55%, /* stripes ltr*/ 80% 100%, 50% 110%, 20% 120%, /* stripes rtl */ 20% 100%, 50% 110%, 80% 120%, /* face */ 50% 30%; background-size: /* ears */ 40px 60px, 40px 60px, 60px 80px, 60px 80px, /* mouth */ 40px 20px, 40px 20px, /* nose */ 30px 16px, /* paw */ 40px 20px, 40px 20px, 40px 20px, 40px 20px, 50px 35px, 50px 35px, /* stripes ltr*/ 200px 200px, 200px 200px, 200px 200px, /* stripes rtl */ 200px 200px, 200px 200px, 200px 200px, /* face */ 170px 167px; background-repeat: no-repeat; box-shadow: inset 20px -20px 10px #cdb896, inset -20px -20px 10px #cdb896, inset 0 10px 5px #cdb8.........完整代码请登录后点击上方下载按钮下载查看
网友评论0