div+css实现新拟态统计图表代码
代码语言:html
所属分类:图表
代码描述:div+css实现新拟态统计图表代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap"); body { padding: 0; margin: 0; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; background-color: #F2F4F9; background: #ECEFF8; } body .main .graph-card { box-sizing: border-box; width: 889px; height: 412px; background: #ECEFF8; border: 2px solid rgba(252, 252, 252, 0.40218); box-shadow: -6px -6px 10px rgba(255, 255, 255, 0.561517), 6px 6px 10px rgba(58, 62, 118, 0.086675), inset 2px 2px 4px 1px rgba(61, 53, 138, 0.086757); border-radius: 15px; padding: 50px 46px 33px 36px; display: flex; } body .main .graph-card .data-box { display: flex; flex-direction: column; } body .main .graph-card .data-box span { margin-bottom: 35px; font-family: Nunito; font-style: normal; font-weight: normal; font-size: 16px; line-height: 22px; /* identical to box height */ text-align: right; color: #121323; } body .main .graph-card .data-box span:last-child { margin: 0; } body .main .graph-card .graph-box { position: relative; } body .main .graph-card .graph-box svg { margin-top: 8px; margin-left: 35px; } body .main .graph-card .graph-box .graph-bars { width: 100%; height: 100%; position: absolute; top: 0; display: flex; align-items: flex-end; box-sizing: border-box; padding-left: 57px; padding-right: 51px; justify-content: space-between; } body .main .graph-card .graph-box .graph-bars .bar-chart { margin-bottom: 30px; box-sizing: border-box; padding: 2px; height: attr(data-color); width: 18px; background: #ECEFF8; border: 2px s.........完整代码请登录后点击上方下载按钮下载查看
网友评论0