css - Wie stelle ich den Zeilenabstand nach dem Flex-Zeilenumbruch ein? (Richtung:Zeile+Warp:Warp)
学习ing
学习ing 2017-06-10 09:48:51
0
2
2785

效果图

css

.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.flex-item {
    width: 33%;
}

html

<form class="form-inline" role>
    <p class="flex-container">
        <p class="flex-item">
            <p class="form-group">
                <label class="control-label">提交类型:</label>
                <input class="form-control" type="text" placeholder="请输入内容"/>
            </p>
        </p>
        <p class="flex-item">
            <label class="control-label">主责部门:</label>
            <select class="form-control" style="width: 150px;height: 33px;" id="select_orderstatus">
                <option value="-1">全部</option>
                <option value="0">行政部</option>
                <option value="1">IT部</option>
            </select>
        </p>
        <p class="flex-item">
            <label class="control-label">岗位:</label>
            <input class="form-control" type="text" placeholder="请输入内容"/>
        </p>
        <p class="flex-item">
            <p class="form-group">
                <label class="control-label">指示编号:    </label>
                <input class="form-control" type="text" placeholder="请输入内容"/>
            </p>
        </p>
        <p class="flex-item">
            <label class="control-label">指示名称:    </label>
            <input class="form-control" type="text" placeholder="请输入内容"/>
        </p>
        <p class="flex-item">
            <label class="control-label">指标类型:</label>
            <select class="form-control" style="width: 150px;height: 33px;" id="select_orderstatus">
                <option value="-1">全部</option>
                <option value="0">类型1</option>
                <option value="1">类型2</option>
            </select>
        </p>
    </p>
</form>
学习ing
学习ing

Antworte allen(2)
漂亮男人

flex-container里加个align-content: space-around
再给个固定高度

扔个三星炸死你

justify-content:space-between;flex-flow:row wrap;

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage