;}
Inline elements can also use the flex layout.
.box{ display: inline-flex;}
WebKit the kernel browser, you must -webkit prefix it.
.box{ display: -webkit-flex; /* Safari */ display:
Page 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 solution----flex layout that enables easy, complete, responsive implementation of various page layouts. Currently, it has been supported by al
{ 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 properties of the c
See http://www.k-zone.cn/zblog/post/adobe-flex-air-traing-diagrams-data-2.html for details
The original text is as follows:The previous article Adobe Flex/air learning route (data in flex Part 1) analyzes some frequently used data types in flex and some frequently used classes for data processing, today, we will brief
First, there is a SWF file, test.swf, and there is also an automatically generated HTML file, test.html.Then, in another file, test.jsp, through the IFRAME, the introduction of the test.html, that is, the introduction of SWF.Now I want to pass the argument to flex in test.jsp, and call the methods in Flex, and I'm going to use the following method:First, write a method to invoke
First, there is a SWF file, test.swf, and there is also an automatically generated HTML file, test.html.
Then, in another file, test.jsp, through the IFRAME, the introduction of the test.html, that is, the introduction of SWF.
Now I want to pass the argument to flex in test.jsp, and call the methods in Flex, and I'm going to use the following method:
First, write a method to invoke
1. Introduction 1.1 DescriptionThe flex layout, also known as Flex flexible layout, is primarily designed to have the width and height of the item fill the free space of the parent container in a certain order.ExampleNote : In the following section, the parent container is referred to as an item in the container.1.2 Browser support conditionsIE 11 does not fully support the
Page layout is a key application of CSS.ImgThe 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.ImgIn 2009, a new scheme--flex layout was proposed, which could implement various page layouts in a simple, complete and responsive way. Currently, it has been supported by al
, only the Firefox/chrome/safari browser supports the elastic box model (IE9 unknown, Opera has not yet), and when used, it needs to be accompanied by a private prefix. such as-moz-,-webkit-.CSS InstancesNow let's instantiate the example CSS on the Marin sub-house above, and see how it behaves on a Web page://zxx: There's a feeling of making a movie of a novel,The main CSS code is as follows:. test_box { display:-moz-box; Display:-
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 flex layout.
. box{ Display:inli
1 DOCTYPE HTML>2 HTML>3 Head>4 title>CSS3 Box Modeltitle> 5 style>6 . Box3{7 width:300px;8 Height:100px;9 /*set the parent class of the CSS3 box model*/Ten Display:-webkit-box; One Display:-moz-box; A Display:Box; - - Background-color:#1d89cf; the } - . Box3>section{ - /*set the subclass of the CSS3 box model and divide them equally*/ - -webkit-box-flex
), and when used, it needs to be accompanied by a private prefix. such as-moz-,-webkit-.CSS InstancesNow let's instantiate the example CSS on the Marin sub-house above, and see how it behaves on a Web page://zxx: There's a feeling of making a movie of a novel,The main CSS code is as follows:. test_box { display:-moz-box; Display:-webkit-box; Display:box; ... }. List { ...}. List_one {
Box-flex is a newly added box model attribute of CSS3, which can solve our layout by n multi-structure, CSS implementation. One of the classic layout applications is the vertical, horizontal, and proportional distribution of the layout.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 (-
Flex basic syntax (1): flex basic syntax
Any container can be specified as a Flex layout.
. Box {display: flex ;}
You can also use the Flex layout for In-row elements.
. Box {display: inline-flex ;}
The
supported only by IE10 and requires the addition of a prefix-ms-"3" new version Display:flex | Inline-flexThis version is compatible with ie11+, Firefox, Safari, Chrome, opera, and mobile, but the mobile side ios7.1-8.4 needs to be prefixed-webkit-DisplayTo make an element into a telescopic container, you need to use the Display property. Elements that use flex layout, called Telescopic containers (
clean up the lower additional spaceEnd scaling project to clean up extra space with bottom baseCenter scaling project is centered on the middle and cleans up the upper and lower spaces on averageBaseline scaling project to clean up additional space based on baselineStretch Telescopic project fills the entire container, default5.box-flexThe Box-flex property can use floating-point numbers to distribute scaling itemsSet the proportions that each scalin
Long time not to write blog, before the long not all closed, but with the longer working hours, the accumulation of knowledge and summary is really important. So advice yards farmers every day to take out a little time to summarize something, after you benefit!! Today is still a talk about how flex in CSS3 is handled compatibleFlex is a very useful property, if there is anything that can completely replace the float and position, then it must be, alth
Webkit is the core of AppleSafari and KDEKonqueror browsers. As an excellent lightweight browser Layout Engine, WebKit has been integrated with the Webkit engine in the new Qt version 4.4. next we will compile the Qt-based WebKit. dependencies the following software is required to compile
Objective
I use a lot of flex layout when I write the page, I feel very useful. Attached below is a nice flex layout introduction article.
Flex layout Tutorial Want to know to see this blog, or their own Baidu, here to do more introduction, we mainly say a flex layout compatibility problem.
Why?
You may want to ask
-webkit-box-orient Sub-element arrangement Direction Horizontal | Vertical |inline-axis | Block-axis | Inherit, where the default value is Inline-axis, which is the horizontal arrangement
-webkit-box-flex the ratio between sub-elements, only as a factor
-webkit-box-direction Sub-element order normal | Reverse |inheri
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.