init
This commit is contained in:
45
Html-Css/08-盒子溢出.html
Normal file
45
Html-Css/08-盒子溢出.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width-device-width,initial-scale=1.0">
|
||||
<title>盒子溢出 </title>
|
||||
|
||||
<style>
|
||||
#app {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: orangered;
|
||||
|
||||
/* 盒子内容溢出
|
||||
hidden 溢出隐藏
|
||||
scroll 显示滚动条
|
||||
auto 自动
|
||||
|
||||
*/
|
||||
overflow: auto;
|
||||
/* overflow-y: scroll; */
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="app">
|
||||
人之初,性本善,性相近,习相远。
|
||||
苟不教,性乃迁。教之道,贵以专。
|
||||
</div>
|
||||
<hr>
|
||||
<div id="app">
|
||||
人之初,性本善,性相近,习相远。
|
||||
苟不教,性乃迁。教之道,贵以专。
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user