div+css实现响应式自适应简洁数据仪表盘代码

代码语言:html

所属分类:响应式

代码描述:div+css实现响应式自适应简洁数据仪表盘代码

代码标签: div css 响应式 自适应 简洁 数据 仪表盘 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  
 <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cute+Font&family=Oxanium&display=swap" rel="stylesheet">
  
<style>
* {
  margin: 0;
  padding: 0;
  font: inherit;
  box-sizing: border-box;
}

body {
  background: #000;
  color: #fff;
  font-family: 'Oxanium', sans-serif;
  font-size: 100%;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

h2 {
  color:#000;
  font-size: 1.65em;
  line-height:1.1;
}

.profile h2 {
  font-size: 2em;
}

h2,
p,
th {
  font-family: 'Cute Font', sans-serif;
  text-transform: uppercase;
}

h2,
p,
table {
  text-align: center;
}

p,th{
  font-size: 1.3em;
}

th{
	color:#02bd27;
	background-color:#000;
}

td,
li,
.calories div {
  font-size: 0.9em;
}

tr:nth-child(odd)
{
  background-color: rgba(0,0,0,0.5);
}

tr:nth-child(even) {
  background-color: rgba(0,0,0,0.7);
}

table,
tr,
th,
td {
  border: none;
}

table {
  width: 100%;
}

th,
td {
  padding: 0.3em 0.75em;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0