init
This commit is contained in:
38
Html-Css/09-怪异盒模型.html
Normal file
38
Html-Css/09-怪异盒模型.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<!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;
|
||||
|
||||
/* 怪异盒模型 */
|
||||
box-sizing: border-box;
|
||||
padding: 20px;
|
||||
/* 边框 和 内边距 都不会改变盒子的大小
|
||||
注意 边框 边距 不能大于盒子本身的大小
|
||||
*/
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="app">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user