css绘制前端程序员技能图
代码语言:html
所属分类:布局界面
代码描述:css绘制前端程序员技能图
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@900&display=swap'); body { padding: 0; margin: 0; background: #1d1b38; } .container { width: 500px; height: 500px; background: #ffe0f7; border-radius: 50px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: hidden; box-shadow: 0 0 4px #ffe0f7; } p { position: relative; top: 14px; font-family: 'Poppins', sans-serif; } .desk { position: relative; width: 450px; height: 20px; border-radius: 10px; background: #005086; top: 450px; left: 25px; } .desk:before { content: ""; position: absolute; height: 10px; width: 300px; border-radius: 10px; top: 4px; right: 2px; background: #ffffff37; } .desk:after { content: ""; position: absolute; height: 12px; width: 12px; border-radius: 50%; top: 3px; right: 304px; background: #ffffff37; } .vase { width: 40px; height: 0; border-top: 50px solid #f6ab6c; border-left: 10px solid transparent; border-right: 10px solid transparent; position: relative; top: 380px; left: 60px; } .vase:before { content: ""; position: absolute; height: 10px; width: 60px; background: #ede682; bottom: 40px; left: -10px; } .vase:after { content: ""; position: absolute; height: 6px; width: 54px; border-radius: 50%; background: #ede682; bottom: 30px; left: -7px; } .leaf { background: #62760c; width: 16px; height: 50px; position: relative; bottom: 90px; border-radius: 50%; z-index: -1; box-shadow: 24px 0 0 0 #62760c, 12px 0 0 0 #96bb7c; } .laptop { height: 0; width: 130px; border-top: 90px solid #222831; border-left: 8px solid transparent; border-right: 8px solid transparent; position: relative; top: 282px; left: 165px; } .laptop:before { width: 130px; content: ""; position: absolute; height: 6px; bottom: -8px; background: #222831; } .laptop:after { width: 10px; content: ""; position: absolute; height: 6px; bottom: -4px; left: 4px; background: #222831; box-shadow: 110px 0 0 0 #222831; } .logo { height: 20px; width: 30px; background: #444; border-radius: 50%; position: relative; bottom: 60px; left: 50px; } .lamp { height: 20px; width: 100px; background-color: #000; border-top-right-radius: 50px; border-top-left-radius: 50px; position: relative; top: 270px; left: 350px; z-index: 1000; } .lamp:before { content: ""; position: absolute; height: 10px; width: 40px; border-top-right-radius: 5px; border-top-left-radius: 5px; background-color: #000; left: 50%; transform: translate(-50%); top: -10px; } .stand { height: 90px; width: 10px; background-color: #fcbf1e; position: absolute; top: -90px; left: 60%; transform: translate(-50%); z-index: -1; transform: rotate(20deg); } .stand:before { content: ""; height: 90px; width: 10px; background-color: #fcbf1e; position: absolute; top: -60px; right: 32px; transform: rotate(-60deg); } .stand:after { content: ""; height: 20px; width: 20px; border-radius: 50%; position: absolute; top: -6px; /* right: 10px; */ right: -4px; background-color: #000; } .bulb { height: 40px; width: 70px; background-color: #000; position: absolute; bottom: 140px; left: -30px; border-radius: 50px 50px 0 0; transform: rotate(45deg); } .bulb:before { content: ""; position: absolute; height: 24px; width: 24px; background-color: #000; border-radius: 50%; left: 24px; top: -12px; } .bulb:after { content: ""; position: absolute; height: 10px; width: 76px; border-radius: 20px; border: 1px solid black; background-color: #fcbf1e; top: 30px; right: -4px; } input[type="checkbox"] { -webkit-appearance: none; cursor: pointer; height: 10px; width: 12px; background-color: red; border-radius: 2px; position: absolute; bottom: 26px; left: 30px; z-index: -1; outline: none; } input[type="checkbox"]:before { content: ""; position: absolute; height: 0; width: 65px; border-bottom: 260px solid #ffe78f8c; border-left: 50px solid transparent; border-right: 50px solid transparent; transform: rotate(45deg); bottom: -94px; right: 55px; display: none; } input[type="checkbox"]:checked:before { display: block; } input[type="checkbox"]:checked { height: 5px; } .face { height: 120px; width: 100px; border-radius: 60%; background: #f7c5a8; position: relative; left: 190px; top: 20px; } .hair { background: black; height: 40px; width: 90px; border-radius: 50%; position: relative; left: 0px; bottom: 10px; transform: rotate(-10deg); } .hair:before.........完整代码请登录后点击上方下载按钮下载查看
网友评论0