43 lines
1.0 KiB
HTML
43 lines
1.0 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>Overflow 与尺寸</title>
|
|
<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">
|
|
<h1>学习记录</h1>
|
|
<p>
|
|
今天继续练习 CSS。今天继续练习 CSS。今天继续练习 CSS。今天继续练习 CSS。今天继续练习
|
|
CSS。今天继续练习 CSS。今天继续练习 CSS。今天继续练习 CSS。
|
|
</p>
|
|
</div>
|
|
</body>
|
|
</html>
|