纯css布局实现有订单在家工作上班的日子
代码语言:html
所属分类:布局界面
代码描述:纯css布局实现有订单在家工作上班的日子
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> html, body { background-color: rgb(128, 214, 243); animation: home 10s infinite; } @keyframes home { 0% { background-color: rgb(128, 214, 243); } 50% { background-color: rgb(77, 152, 177); } 100% { background-color: rgb(41, 91, 107); } } .container { position: absolute; left: 10%; top: 10%; transform: translate(100%, 100%); } .clock { top: 100px; left: 50px; position: absolute; height: 110px; width: 110px; background-color: dodgerblue; border-radius: 100%; } .clock:after { content: ""; position: absolute; z-index: 2; top: 10px; left: -12px; height: 50px; width: 100px; opacity: 0.2; background-color: rgb(190, 190, 190); border-top-left-radius: 100px; border-top-right-radius: 100px; transform: rotate(-45deg); } .clock:before { content: ""; position: absolute; z-index: 2; top: 5px; left: 5px; height: 100px; width: 100px; background-color: rgb(255, 255, 255); border-radius: 100%; transform: rotate(135deg); } .clkhand { height: 5px; position: absolute; width: 5px; background-color: black; border: black 2px solid; border-radius: 100%; top: 150px; z-index: 2; left: 100px; } .clkhand:before { content: ""; position: absolute; height: 45px; width: 3px; background-color: rgb(24, 23, 23); top: 2px; z-index: -1; left: 3px; transform-origin: 0% 0%; transform: rotate(180deg); animation-timing-function: linear; animation: rotate 0.84s infinite; } @keyframes rotate { 100% { transform: rotate(540deg); } } .clkhand:after { content: ""; position: absolute; height: 35px; width: 3px; background-color: rgb(24, 23, 23); top: 2px; z-index: -1; left: 3px; transform-origin: 0% 0%; transform: rotate(180deg); animation-timing-function: linear; animation: rotate 10s infinite; } .table { position: absolute; width: 500px; height: 20px; background-color: rgb(170, 113, 67); border-radius: 20px; top: 400px; left: 200px; z-index: -3; } .table:before { content: ""; position: absolute; width: 20px; height: 185px; left: 80px; background-color: rgb(170, 113, 67); z-index: -3; } .table:after { content: ""; position: absolute; width: 20px; height: 185px; left: 400px; background-color: rgb(170, 113, 67); z-index: -3; } .tbblwman { position: absolute; width: 40px; height: 150px; left: 170px; top: 30px; border-top-right-radius: 40px; border-top-left-radius: 40px; background-color: rgb(117, 111, 111); } .tbblwman:before { content: ""; position: absolute; width: 40px; height: 150px; left: 100px; top: 0px; border-top-right-radius: 40px; border-top-left-radius: 40px; background-color: rgb(117, 111, 111); } .tbblwman:after { content: ""; position: absolute; width: 100px; height: 50px; left: 0px; top: 20px; z-index: -1; background-color: rgb(63, 60, 94); } .tbblwman2 { position: absolute; width: 100px; height: 50px; background-color: rgb(223, 144, 17); top: 20px; left: 190px; z-index: -2; } .tbblwman2:before { position: absolute; content: ""; height: 0px; width: 0px; left: -110px; border-top: 25px solid rgb(94, 56, 26); border-right: 20px solid transparent; } .tbblwman2:after { position: absolute; content: ""; height: 0px; width: 0px; left: 210px; border-top: 25px solid rgb(94, 56, 26); border-right: 20px solid transparent; } .shoes{ position: absolute; height: 25px; width: 40px; left:170px; top:160px; background-color: rgb(104, 74, 40); border-top-left-radius: 200px; border-top-right-radius: 200px; } .shoes:before{ position: absolute; content:""; height: 25px; width: 40px; left:100px; top:0px; background-color: rgb(104, 74, 40); border-top-left-radius: 200px; border-top-right-radius: 200px; } .laptop { position: absolute; border-bottom: 100px solid rgb(199, 196, 196); border-left: 25px solid transparent; border-right: 25px solid transparent; height: 0px; width: 130px; transform: rotate(180deg); border-radius: 15px; top: -100px; left: 150px; } .laptop:before { position: absolute; content: ""; height: 25px; width: 25px; border-radius: 100%; background-color: white; border: 2px solid black; left: 55px; top: 45px; } .manbody { position: absolute; width: 100px; height: 60px; left: 190px; background-color: rgb(223, 144, 17); border-radius: 20px; top: -110px; } .manbody:before { content: ""; position: absolute; border-bottom: 100px solid rgb(223, 144, 17); border-left: 25px solid transparent; border-right: 25px solid transparent; height: 0px; width: 130px; border-radius: 15px; top: 10px; left: -40px; } .lamp { position: absolute; top: -25px; left: 20px; height: 25px; w.........完整代码请登录后点击上方下载按钮下载查看
网友评论0