Blogger Information
Blog 19
fans 0
comment 0
visits 5714
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
盒模型常用的属性与盒子大小
vbokok
Original
279 people have browsed it
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>盒模型</title>
  8. </head>
  9. <body>
  10. <div class="box">box</div>
  11. </body>
  12. </html>
  13. <style>
  14. .box{
  15. width: 200px;
  16. height: 150px;
  17. border: 8px solid blue;
  18. padding: 20px;
  19. background-color: red;
  20. background-clip: content-box;
  21. margin: 10px;
  22. box-sizing: content-box;
  23. box-sizing: border-box;
  24. }
  25. </style>

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