This commit is contained in:
rou
2026-03-12 22:56:33 +08:00
parent 4495ae0e28
commit 710852d8d0
9 changed files with 425 additions and 11 deletions

View File

@@ -4,7 +4,31 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overflow 与尺寸</title>
<link rel="stylesheet" href="./starter.css" />
<style>
body{
background-color: rgb(241, 247, 250);
display: flex;
justify-content: center;
padding-top: 40px;
}
.panel{
border: 1px solid rgb(207, 216, 227);
border-radius: 20px;
background-color: white;
width: 300px;
height: 170px;
padding-top: 20px;
padding-left: 20px;
padding-right: 20px;
overflow-y: auto;
}
p{
height: 150px;
letter-spacing: 1px;
}
</style>
</head>
<body>
<div class="panel">