First, what is the flex layout?Flex is the abbreviation for flexible box, meaning "resilient layout", which provides maximum flexibility for box-shaped models.Any container can be specified as a flex layout.
. Box{ display: Flex;}
Inline elements can also use the
: "-moz-box"
Safari, Chorme, Opera: "-webkit-box"
Display:-moz-box;display:-webkit-box;
(2) The difference between box layout and multi-column layout
1. When using multi-column layouts, the width of each column must be equal, and when you specify the width of each column, you can only specify a uniform width for all columns, and the width between columns and bars cannot be different.
2. When using multi-col
is like you
Add the display: flex; align-items: center; justify-content: center to the parent element;
Add display: inline-flex to the child element;
The effect is as follows:
Yes, you are wrong. Playing is so simple (it's a sin to rob the principal of his lines)
2.2 layout applications
The following page is an example
This page is subject to fixed head when the content in the sky-blue box slides;
You
Box-flex is a newly added box model attribute of CSS3, which can solve our layout by n multi-structure, CSS implementation. A layout application for classic is the vertical, horizontal, and proportional distribution of layouts. Currently Box-flex properties are not fully supported by Firefox, Opera, or Chrome, but they can be used to define Firefox (-moz), opera (-0), Chrome/safari (-
See: http://www.k-zone.cn/zblog/post/adobe-flex-air-traing-diagrams-data-1.html for details
The full text is as follows:The article Adobe Flex/air learning route (Control in the flex part) introduces some experience in learning flex controls. Now I will start the second article in the Adobe
{ display: -webkit-box; -webkit-box-orient:horizontal; -webkit-box-align: stretch; background-color: #f4f4f4; height: 800px; }The 4.box-flex is used for child elements that allow the child container to be divided by a certain rule for the width of the p
One, Flex layoutFlex is the abbreviation for flexible box , meaning " resilient layout ", which provides maximum flexibility for box-shaped models .Any container can be specified as a flex layout.
.box{ display: flex;}
inline Elements can also use the Flex layout.
.box{ display: inline-
Document directory
Flex Overview
Flex Builder
Flex, ColdFusion, and JRun
Flex and Flash
Flex and Flash Remoting
Flex roadmap, price, toolkit, and other related technologies
Trial and developer versions of
Css3 flex Flow Adaptive responsive layout style class, css3flex
Today, we are working on a horizontal and centered layout of the Interior elements of the div with horizontal edge pasting (a bit around, look at the figure directly ),
At the beginning, I used some common css + html methods to achieve layout. I felt like this was very rigid (I added a div and didn't set a negative margin-left for the div, this value must be calculated ),
So I thought of
This article mainly introduces the CSS Flex flexible layout of the relevant information, small series feel very good, and now share to everyone, but also to make a reference. Let's take a look at it with a little knitting.
Case Base Layout
Html
Css
. box{ Display:-webkit-flex; Display:flex; } . item{ wi
Flex usually refers to Adobe Flex, which was originally released by Macromedia in March 2004, based on its proprietary Macromedia Flash platform, which covers support for Ria (Rich Internet applications) The development and deployment of a series of technical combinations. Another meaning of flex is a tool that generates scanners that recognize the lexical patter
Flex layouts Make it easy, complete, and responsive to implement a variety of page layouts.Browser support: Get support from all browsers. (Note: Flex layout will be the preferred solution for future layouts)I. The concept of flex layoutFlexIsFlexible BoxThe abbreviation, meaning "Flexible Layout"To provide maximum flexibility for the box-shaped model.Any contain
.
. box{ Display:inline-flex;}
WebKit the kernel browser, you must add the-webkit prefix.
. box{ Display:-webkit-flex; */Safari */ Display:flex;}
Note that when set to flex layout, the float, clear, and vertical-align propertie
layout.
.box{ display: inline-flex;}
WebKit the kernel browser, you must -webkit prefix it.
.box{ display: -webkit-flex; /* Safari */ display: flex;}
Note that after you set the
layout.
.box{ display: inline-flex;}
WebKit the kernel browser, you must -webkit prefix it.
.box{ display: -webkit-flex; /* Safari */ display: flex;}
Note that after you set the
.
.box{ display: flex;}
Inline elements can also use the flex layout.
.box{ display: inline-flex;}
WebKit the kernel browser, you must -webkit prefix it.
.box{ display: -webkit-
widely used set of global Unicode support software for C/C ++ and Java libraries;
XSLT: Extensible Stylesheet Language transformation, W3C-defined specification for XML document conversion;
Curl: a command line data transmission tool that uses the URL syntax. It is based on libcurl.
SQLite: SQLite is an SQL database engine that implements the sql92 standard. It can combine database engines and interfaces in a library to store all data in a single file;
Gperf: A perfect hash function generator;
This is one I saw a short time ago, was still in response to the layout of distress, but learned this, feel much easier. Flex Layout TutorialPage layout is a key application of CSS.The traditional solution for layout, based on the box model, depends on the Display property + Position property + Float property. It is very inconvenient for those special layouts, for example, vertical centering is not easy to achieve.In 2009, the website proposed a new s
layout.
.box{ display: inline-flex;}
WebKit the kernel browser, you must -webkit prefix it.
.box{ display: -webkit-flex; /* Safari */ display: flex;}
Note that after you set the
layout.
.box{ display: inline-flex;}
WebKit the kernel browser, you must -webkit prefix it.
.box{ display: -webkit-flex; /* Safari */ display: flex;}
Note that after you set the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.