简体   繁体   English

并排div - 左侧div未正确定位

[英]side by side div - left div is not positioned correctly

I'm trying to put two divs side by side using the following code. 我正在尝试使用以下代码并排放置两个div。 Basically it works as you can see here : 基本上它可以正常工作,你可以在这里看到:

  div.keep-row-together {
      overflow-x: hidden;
      white-space: nowrap;
  }
  div.keep-row-together [class*="span"] {
      display: inline-block;
      float: none; /* - disabled as having issue in firefox */
  }

But when I put a js grid into the right div the left div moves down (at least in Chrome and Firefox). 但是当我把一个js网格放到右边的div中时,左边的div向下移动(至少在Chrome和Firefox中)。 Any idea what I have to change? 知道我要改变什么吗? Here is the plnkr . 这是plnkr

添加到您的div

vertical-align: bottom;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM