css布局,左边的滚动时右边不随着滚动

2020-12-07  本文已影响0人  hao_developer
<body>

   <div class="parent">

    <div class="leftChild"></div>

    <div class="rightChild"></div>

  </div>

</body>
body {width: 100%, height: 100%}

.parent {overflow: hidden; position:fixed; top:0; bottom:0; left:0; right:0}

.leftChild {float:left; overflow:auto; width:40%;height: 100%}

.leftChild {float:left; overflow:auto; width:60%; height: 100%}
上一篇 下一篇

猜你喜欢

热点阅读