css 弯曲中心/中心垂直

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 弯曲中心/中心垂直相关的知识,希望对你有一定的参考价值。

.flex-container {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    }

.flex-item:nth-child(1) {
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    }

以上是关于css 弯曲中心/中心垂直的主要内容,如果未能解决你的问题,请参考以下文章

css 垂直对齐中心全部#css

CSS 绝对中心(垂直和水平)图像| CSS-技巧

css Boostrap 3模态垂直中心

css 垂直和水平中心

css 垂直和水平中心

css 垂直中心