How to use flex layout to distribute columns

高洛峰
Release: 2017-03-15 10:05:07
Original
2728 people have browsed it

This article introduces the method of using flex layout to distribute columns

html code

<div class=&#39;items&#39;>
    <div class=&#39;item&#39;></div>
    <div class=&#39;item&#39;></div>
    <div class=&#39;item&#39;></div>
</div>
Copy after login

css code

items:{

  display:flex;

flex-direction:column;
-webkit-flex-direction:column;
-moz-flex-direction:column;
 -o-flex-direction:column;

}

.item{

 height:40px;

}


The above is the detailed content of How to use flex layout to distribute columns. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!