Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript bootstrap 4仅滚动中间列/类似facebook的滚动_Javascript_Twitter Bootstrap_Css_Bootstrap 4 - Fatal编程技术网

Javascript bootstrap 4仅滚动中间列/类似facebook的滚动

Javascript bootstrap 4仅滚动中间列/类似facebook的滚动,javascript,twitter-bootstrap,css,bootstrap-4,Javascript,Twitter Bootstrap,Css,Bootstrap 4,我在引导中有3列,我只想滚动中间的部分,同时保持相对于父容器的位置。类似facebook滚动的东西 <div class="container"> <div class="row"> <div class="col-md-3">stop scrolling when content end </div> <div class="col-md-6"> SCROLL </div> <div cl

我在引导中有3列,我只想滚动中间的部分,同时保持相对于父容器的位置。类似facebook滚动的东西

<div class="container">
  <div class="row">
    <div class="col-md-3">stop scrolling when content end </div>
    <div class="col-md-6"> SCROLL </div>
    <div class="col-md-3"> stop scrolling when content end </div>
  </div>
</div>

内容结束时停止滚动
纸卷
内容结束时停止滚动

我尝试使用position fixed,但当我使用它时。它会弄乱网格系统,这就是为什么我希望位置尽可能保持相对于父对象的位置。

如果我理解这个问题,你可以像这样使用
sticky top


一边
纸卷
一边
中间一栏将滚动其内容的长度

<div class="container">
  <div class="row">
    <div class="col-md-3"> <div class="sticky-top">side</div> </div>
    <div class="col-md-6"> SCROLL </div>
    <div class="col-md-3"> <div class="sticky-top">side</div> </div>
  </div>
</div>