<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.box{
width: 200px;
height: 200px;
background-color: yellow;
padding: 100px;
border: 50px solid red; }
</style>
</head>
<body>
<div class="box">
整个盒子占用的空间的宽度等于:左边框宽度+右padding+宽度+左padding+右边框宽度
整个盒子占用的空间的高度等于:上边框宽度+上padding+高度+下padding+下边框宽度
</div>
</body>
</html>