简体   繁体   English

将ion-col内的div对准柱底

[英]Align div inside ion-col to bottom of column

I have a column with multiple divs inside it. 我有一列里面有多个divs How can I align the last div to the bottom of the column? 如何将最后一个div对齐到列的底部?

Example code: 示例代码:

<!-- language: lang-html -->
  <ion-grid>
    <ion-row>
      <ion-col>
        <div> some text at the top </div>
        <div> more text at the top </div>
        <div> text at the bottom </div> <!-- I want this to be at the bottom of the column-->
      </ion-col>
    </ion-row>
  </ion-grid>

I didn't explain my question that well. 我没有很好地解释我的问题。 I had 2 columns with different heights in the same ion-row which was creating extra space on the shorter column. 我在同一根ion-row有2个高度不同的色谱柱,这在较短的色谱柱上产生了额外的空间。

I solved my issue by putting the desired bottom divs in a separate ion-row. 我通过将所需的底部div放在单独的离子行中解决了我的问题。

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

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