In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "flex multi-column layout example analysis in html". In daily operation, I believe that many people have doubts about flex multi-column layout case analysis in html. The editor consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "flex multi-column layout example analysis in html". Next, please follow the editor to study!
Basic layout with three equal columns
.container {display: flex; width: 500px; height: 200px;} .left {flex:1; background: red;} .middle {flex:1; background: green;} .right {flex:1; background: blue;}
Three columns with fixed width on the left and adaptive on the right
.container {display: flex; height: 300px;} .left {flex: 00 100px; background-color: red;} .middle {flex: 00 100px; background-color: green;} .right {flex:1; background-color: blue;} qqq qqq wwww
After shrinking the browser window
# # fixed around, adaptive in the middle # #
.container {display: flex; height: 300px;} .left {width: 100px; background-color: red;} .middle {flex: 1; background-color: green;} .right {width: 100px; background-color: blue;} qqq qqq wwww
After shrinking the browser window
Nine palace grid layout
.container {display: flex; height: 300px; width: 300px; flex-direction: column;} .row {display: flex; height: 100px;} .left {flex: 1; height: 100px; border: 1px solid red;} .middle {flex: 1; height: 100px; border: 1px solid green } .right {flex: 1; height: 100px; border: 1px solid blue;}
Holy Grail layout
* {margin:0; padding:0;} .container {display: flex; flex-direction: column; min-height: 100vh; justify-content: space-between;} .header {background: red; flex: 00 100px;} .content {display: flex; flex:1 }. Content-left {flex: 00 100px; background: green;}. Content-right {flex: 00 100px; background: pink;}. Content-middle {flex:1;} .footer {background: yellow; flex: 00 100px;} Header Left Center Right Footer
After narrowing the browser window
At this point, the study on "flex multi-column layout instance analysis in html" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.