Css3 introduces a new box model-elastic box model, which determines the distribution of a box in other boxes and how to process available space. This is similar to XUL (the user interaction language used by Firefox). Other languages also use the same box model, such as XAML and GladeXML.
With this model, you can easily create an adaptive browser window flow layout or an auto layout of the adaptive font size. The example in this article uses the follow
elastic container with the spindle and the horizontal axis (perpendicular to the spindle) after any flexible length and automatic margins have been resolved. You can justify-content、align-items、align-self align-content adjust this alignment by and properties.Using justify-content properties, you can set the alignment of an elastic item to the spindle of an elastic
This article describes how to implement JS elastic motion. We will share this with you for your reference. The details are as follows:Description: it is like a spring, and finally it stops slowly.I. Acceleration and deceleration1. Acceleration 1 2 VariSpeed = 0; ISpeed ++; The speed is getting faster and faster.2.
Elastic box Model FlexboxElastic box model is a new layout mode of C3It is a layout that ensures that elements behave properly when the page needs to accommodate different screen sizes and device types.The purpose of introducing the flexible box model layout is to provide a more efficient way to arrange, align, and allocate white space for child elements in a container .CompatibilityIE11Elastic Box Model ContentThe
Native (Java) Scripts
Elastic provides a rich sort, mostly based on TF/IDF computing score. Then sometimes the business needs a custom sort, which computes the score according to a rule, and then sorts it according to the score. There are two scenarios for implementing custom sorting at this time:-Function Score-Script1.1 Groovy Scripts1.2 Native Scripts
This article focuses on implementing Elatic custom ordering in the form of native scripts Plug-in
[Study Notes] viewport definition, elastic layout, responsive layout, learning notes viewport
I. Mobile Terminal width settingsViewport View window,
Ii. flexbox, elastic box model:1. Add "display:-webkit-flex" to the element css to convert it into an elastic box model, and then add "flex: 1/2/3" to the CSS of multiple child elements, in this way, the child eleme
This is a toolbar menu effect that uses jquery and CSS3 to produce elastic animation effects. By default, only one circular button is displayed in the toolbar menu. When you click a button, the sub-menu items are displayed in an elastic animation, which is very cool. Brief tutorial
This is a toolbar menu effect that uses jquery and CSS3 to produce elastic animat
-box;Display:-webkit-flex;Display:-ms-flexbox;Display:Flex;-webkit-box-orient:Vertical;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;Height:100%;}. Header,.footer{Height:40px;Line-height:40px;Background-color:#D8D8D8;text-align:Center;}. Main{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;Flex:1;width:100%;} then the main problem is that the child container height exceeds the height of the parent container and how the content of the child container scro
For some time, I have been tossing about various problems of Mobile Page Auto-rolling. I did some research. Today I will share a little bit ~
In traditional PCs, the height of sub-containers exceeds the height of the parent container. Generally, overflow: auto can be used to display the overflow content by dragging the scroll bar. in mobile web development, because browser vendors have different systems and versions, some models do not support elastic
Compare the classic Universal JS physical elastic floating AD code, floating speed moderate, moderate size, is the most classic most standard floating ad code, recommended for everyone to use. But floating ads on a page is best not to put too much, or it will affect the site browsing experience, not worth the candle.HTML> Head> Metahttp-equiv= "Content-type"content= "text/html; charset=gb2312" /> title>Classic JS Physical
The elastic box model is used to determine the distribution of elements in the box and how to process the available space of the box. With him, we can easily create a mobile layout of the adaptive browser window or an elastic layout of the adaptive font size.
Its attributes include:
Box-align: defines the spatial allocation method of child elements in the vertical direction of the box.
Box-pack: defines the
Elastic box ModelNote that the parent element must be display:box or display:inline-box when using the elastic box modelbox-orient defining the layout direction of the box model (written on the parent element) Horizontal horizontal display (default) Vertical vertical Directionbox-direction element arrangement order (written on parent element)Normal sequence (default)Reverse reverse OrderBox-ordinal-group
InstanceSet the initial length of the second elastic box element to 80 pixels:
div : nth - of - type ( 2 " { flex - basis : 80px ;}
Effect Preview
Browser supportThe number in the table represents the version number of the first browser that supports the property.The number immediately following the-webkit-,-ms-or-moz-is the first version that supports the prefix attribute.
Properties
For front-end students, web page layout is the basic skill, and it is not a qualified web page reconstruction engineer without page layout. In our daily work, the most commonly used layout method is fixed-width layout. Anyway, the companies I have worked for basically use fixed page la S. The reason why the fixed-width layout is the most widely used is simple because it is simple and easy to use. Fluid and elastic la s are mostly used on forums or per
Last night to listen to a small program of public class, in the layout, inadvertently saw the shape of the elastic box, before only know Box-flex, but because of compatibility issues, the user is very few, after all, most of the market on the browser must be prefixed to achieve, it means more write a few lines of code, in fact, this is not a thing, But most cxy are lazy, can do a line of code to do not write two lines. There's a lot of crap. Back to t
Starting with this article, I'll take a few pages, and I'll share with you how the page layout is implemented from CSS1 to CSS3 (of course, the scope of the reference is using CSS technology). Because the box model technology content is more, this article I will focus on the knowledge point. In the next article, I will lead you to develop an instance of the flexible layout web interface that is compatible with PC-side browsers and mobile browsers.I hope that we can receive the CSS3 in the layout
On Android to achieve ListView elastic effect, there are many different methods, online a search, there are many, the following posted in the project often used in two ways to achieve listview elastic effect (basically can be used) for your reference:
The first is relatively simple, easy to understand, only dynamically changing the ListView on the Y axis of the removable distance, the code is as follows:
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.