先贴代码:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>冒泡</title>
    <style>
        #a{
            width: 300px;
            height:300px;
            background-color: cadetblue;
        }
        #b{
            width: 200px;
            height:200px;
            background-color: chocolate;
        }
        #c{
            width: 100px;
            height:100px;
            background-color: coral;
        }
    </style>
</head>
<body>
<div id="a">
    <div id="b">
        <div id="c"></div>
    </div>
</div>
<script src="mainx.js"></script>
</body>
</html>
html

相关文章:

  • 2021-04-25
  • 2021-04-11
  • 2021-12-06
  • 2021-04-06
  • 2021-08-23
  • 2021-09-08
  • 2021-07-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
  • 2022-02-11
  • 2022-12-23
  • 2021-08-27
  • 2021-11-01
相关资源
相似解决方案