The implementation is as follows:
The instance code is as follows:
paper aircraft &L T;style>. Wrap {position:relative; Display:inline-block; width:300px; height:120px; -webkit-animation:
A previous article describes the implementation of this effect, but the implementation of the code is too cumbersome, so here to share the following simplified version of the implementation method, there is a need to refer to learning.
Please
This article mainly introduces the left fixed, the right self-adaptive two methods of implementation, I believe that everyone learning the layout of the web will be very good help, the following with the small series to see it
The first
This paper mainly introduces the method of horizontal vertical centering of the absolute positioning element, there are 3 methods to be used for reference, friends need to see it together
1.CSS Implementation Center
Disadvantage: You need to know
This article to share a piece of CSS3 code to achieve the mouse hover border rotation effect, the code is easy to understand, very good, with reference value, need to refer to the friend
The following is an example of the 2017 New Year greeting to
Today Xiao Ying to everyone to share a love with CSS painting, the bottom of the code and production process, I hope to help you.
The first step:
Draw a square first.
css Painting Hearts
Step Two:
will take
1, multi-element horizontal center
To achieve the effect:
Ordinary people see the topic, the initial feeling to realize the effect of the picture is not difficult, set the small black box width and height margin, font horizontal vertical center.
The contents of this chapter:
Knowledge Point One:
Box models: The box model consists of four components with content (element contents), padding (padding), Border (border), boundary (margin), and these four sections contain top/right/bottom/ Left
Previous words
Cascading context Z-index is just a matter of resolving two element overrides, who are closer to the user. The CSS blending mode is the problem of how the two-element overlay is mixed. If you know Photoshop, you should be familiar
Before because of the company project needs, found on the Internet:
directly on the code.
HTML code
This is content 111 Here is the content 222 Here is the content 333
CSS Code
. inner{width:265px; height:
Instance
Align the elements of the elastic box in the center:
p
{
display : Flex Span class= "pun" style= "Color: #93a1a1" ";
align - Span class= "PLN" style= "color: #48484c" >items : center ;
}
Instance
Set the order of the Elastic box object elements:
P # MYREDP {order:2;}
P # Mybluep {order:4;}
P # MYGREENP {order:3;}
p # MYPINKP { order : 1 ;}
Handbook Network (www.shouce.ren) Note: Internet explorEr 10 and
when it comes to selectors everyone is not unfamiliar, the most estimated use is the ID selector and class selector, as for the other selectors, here today I avoided.
Class selector: The HTML element is given a loud name, tagged with class, you
1. Using margin
p { width:100px; height:100px; Background-color:skyblue; Position:absolute; top:50%; left:50%; Margin-top: -50px; Margin-left: -50px;}
Analysis :
top:50%; left:50% the top left of the element in the
Previous words
Justification is very common in the production of navigation Nav. This article will detail 3 ways to implement CSS Justification
Flex
Flexible box model Flex, as a powerful, resilient layout, can hold most of the layout effects,
In a project, you often encounter the need to set the element to be vertically centered horizontally. And the specific scene is different, so the personal summary of the method to do a summary, hoping to be useful to the visitors.
The examples given
CSS pseudo-Class (pseudo-classes)
Anchor pseudo-class: In a browser that supports CSS, the different states of a link can be displayed in different ways, including: active, accessed, not accessed, and mouseover.
a:link {color: #FF0000}/* not
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service