Files
2026-03-12 22:56:33 +08:00

54 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Display 与文档流</title>
<style>
body{
background-color: rgb(247, 251, 253);
display: flex;
justify-content: center;
}
.wrap{
padding: 40px 0px ;
margin-left: 0px;
width: min(800px, calc(100% - 40px));
}
.tag{
background-color: rgb(210, 231, 251);
border-radius: 20px;
width: 120px;
height: 80px;
padding: 8px 15px 8px 15px;
margin-left: 0px;
}
.hide-me{
visibility: hidden;
}
.box{
border: 1px solid rgb(202, 212, 222);
width: 100%;
padding: 15px;
margin-left: 0px;
margin-top: 23px;
background-color: white;
}
</style>
</head>
<body>
<section class="wrap">
<span class="tag">HTML</span>
<span class="tag">CSS</span>
<span class="tag hide-me">JavaScript</span>
<div class="box">这是块级盒子 A</div>
<div class="box">这是块级盒子 B</div>
</section>
</body>
</html>