Blogger Information
Blog 10
fans 0
comment 0
visits 3323
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
盒模型的5个核心属性
手机用户7232767
Original
417 people have browsed it

{
<!DOCTYPE html>

<html lang="zh-CN">

<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>
</head>

<body>
<div class="box"></div>
<style>
.box {
width: 150px;
height: 100px;
background-color: antiquewhite;
border: 5px solid black;
padding: 10px;
background-clip: content-box;
margin: 10px;

  1. box-sizing: border-box;
  2. }
  3. </style>

</body>
</html>
}

padding和maigin规则:
从“上”开始顺时针顺序:上、右、下、左

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:代码使用代码块包裹, 并且一个作业只需要一篇文章
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post