这里是政策咨询工作看板页面

申建项目

  • 本月
  • 上月

111

政策咨询

111

待咨询论证

总投资(万)元

  • 本月
  • 上月

111

申请值

111

核定值

111

调整

我要让两个item-info都是垂直居中.item-info { border: 1px solid red; display: flex; align-items: center; justify-content: space-between; .item { flex: 1 1 auto; text-align: center; border-left: 1px solid #cccccc; &:first-child { border: 0; } .num { font-size: 36px; font-weight: bold; margin-bottom: 5px; } .investment { font-size: 24px; font-weight: bold; margin-bottom: 5px; } } } 这个样式align-items: center; 没有生效 如何调整为垂直居中内容:要使align-items: center;生效,需要给.item-info的父元素.el-col添加display: flex;的样式。这样.item-info元素才能成为flex容器,align-items: center;才能起作用。 政策咨询工作看板 - 项目申建统计

原文地址: https://www.cveoy.top/t/topic/quxE 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录