鍍金池/ 問答/UI  HTML/ flex align-content 布局問題

flex align-content 布局問題

 .item{
    border: 1px solid #6094e3;
    position: relative;
    display: flex;
    align-content: space-between;
    flex-direction: column;
    p{
      padding: 15px 10px 0 10px;
      line-height: 1.8;
    }
    .label{
      width: 100%;
      font-size: 26px;
      color: #6094e3;
      background-image: -webkit-linear-gradient( left, rgba(133, 174, 237, 1) 50%, rgba(87, 142, 224, 1));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }

clipboard.png

clipboard.png

但是并沒有兩端對齊

回答
編輯回答
旖襯

應(yīng)該是justify-content:space-between

2017年8月16日 00:30