其他分享
首页 > 其他分享> > 【CSS】企业级两栏布局

【CSS】企业级两栏布局

作者:互联网

<!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 type="text/css">
    body {
      margin: 0;
    }
    .div1 {
      position: absolute;
      top: 0;
      left: 0;
      width: 100px;
      height: 100px;
      background: black;
    }
    .div2 {
      width: 100px;
      height: 100px;
      margin-left: 100px;
      background: hotpink;
    }
  </style>
</head>
<body>
  <div class="div1"></div>
  <div class="div2"></div>
</body>
</html>

标签:两栏,100px,height,width,background,企业级,margin,CSS,left
来源: https://www.cnblogs.com/razzh/p/14954445.html