div+css布局实现心率健康数据卡片代码

代码语言:html

所属分类:布局界面

代码描述:div+css布局实现心率健康数据卡片代码

代码标签: div css 布局 心率 健康 数据 卡片 代码

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

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />
   
     <style>

.card {
    margin: 100px auto;
  background: white;
  border-radius: 20px;
  padding: 18px;
  max-width: 260px;
  width: 100%;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.full-stats-btn {
  background: white;
  border: 1.5px solid #e0e0e0;
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s;
}

.full-stats-btn:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.range {
  margin-bottom: 4px;
}

.range-value {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.range-unit {
  font-size: 28px;
  font-weight: 300;
  color: #b0b0b0;
  margin-left: 4px;
}

.date-range {
  font-size: 11px;
  color.........完整代码请登录后点击上方下载按钮下载查看

网友评论0