中心内容满足

问题描述 投票:0回答:1

如何使可疑细胞的内容居中。

下面我有一个我目前拥有的编码器。 https://codepen.io/anon/pen/ZvBoYd

我目前的CSS是:

td, .td {
  display: flex;
  flex-flow: row nowrap;
  flex-grow: 1;
  flex-basis: 0;
  padding: 0.5em;
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis ;
  min-width: 0px;
  white-space: nowrap;
  border-bottom: 1px solid #d0d0d0;
  align: center;
}
html css flexbox
1个回答
3
投票

使用justify-content: center;为您的细胞。

了解更多关于justify-content的信息

© www.soinside.com 2019 - 2024. All rights reserved.