css绘制一个可爱猫咪效果代码
代码语言:html
所属分类:布局界面
代码描述:css绘制一个可爱猫咪效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body, html { position: relative; display: flex; justify-content: center; align-content: center; height: 100%; display: grid; width: 100%; } .cat { position: relative; display: flex; justify-content: center; align-content: center; background: #ffe6f7; height: 100vmin; width: 100vmin; border-radius: 50%; } .cat-head { position: absolute; display: block; width: 39vmin; height: 35vmin; top: 20vmin; background-color: white; box-shadow: 2vmin -0.9vmin 2vmin -2vmin #feace5, inset -2px -2px 16px 3px #ffe6f7; border-radius: 80% 80% 75% 80% / 80% 80% 90% 90%; transform: rotate(180deg); } /* right cheeks */ .cat-head::after { position: absolute; content: ""; height: 1vmin; width: 1vmin; top: 17vmin; right: 29vmin; border-radius: 50%; background: #fd0e35; box-shadow: -1vmin -6vmin 6vmin 2.5vmin #fd0e35; } /* left-cheeks */ .cat-head::before { position: absolute; content: ""; height: 1vmin; width: 1vmin; top: 17vmin; left: 31vmin; border-radius: 50%; background: #fd0e35.........完整代码请登录后点击上方下载按钮下载查看
网友评论0