盒子模型的习题如何解决这个问题

盒子模型的习题

img


这个盒子模型的代码是什么
如何解决这个问题
html盒子模型问题

我以前写的,记得采纳一下哦!
博文地址:http://t.csdn.cn/3e4iZ

<!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>Document</title>
    <style>
        .box{
            width: 1226px;
            height: 615px;
            margin: 0 auto;
        }
        .demo1{
            float:left;
            width: 234px;
            height: 615px;
            background-color: gold;
        }
        .demo2{
            float:left;
            width: 992px;
            height: 615px;
            background-color:  skyblue;
        }
        .demo2 div{
            float:left;
            width: 234px;
            height: 300px;
            background-color: pink;
            margin-left: 14px;
            margin-bottom: 14px;
        }
       
      </style>
  </head>
  <body>
    <div class="box">
        <div class="demo1"></div>
        <div class="demo2">
            <div>1</div>
            <div>2</div>
            <div>3</div>
            <div>4</div>
            <div>5</div>
            <div>6</div>
            <div>7</div>
            <div>8</div>
        </div>
    </div>
  </body>
</html>