First entry web knowledge point (vi)

Source: Internet
Author: User

Transition transition Apple Browser to prefix IE9 does not support more than hover with the use of
You can add an effect to an element when the element is transformed from one style to another without using Flash animations or JavaScript.
To achieve this, two elements must be established:
① Specifies which CSS property you want to add the effect to to specify the property name
② specifies the duration of the effect, in seconds, the default value is 0
Property:
Transition shorthand property for setting four transition properties in one property
TRANSITION-PROPERTY Specifies the name of the CSS property that applies the transition
Transition-duration defines the time that the transition effect takes. Default value 0
Transition-timing-function a time curve that specifies the transition effect. Default value "Ease"
TRANSITION-DELAY specifies when the transition effect begins. Default value 0
Animations are used to create animations that can replace animated pictures, Flash animations, and JavaScript in many Web pages
① need rules @keyframes
* In @keyframes to specify a style to add browser compatibility prefix IE9 and the following does not support
* Must bind Selector
② Animation name (Take it Yourself)
③ duration
④animation Animation Properties
⑤0%-100% from......to This way can only be specified in two styles generally do not
For example:
Div{animation: The name you take, the length of time;
-moz-animation: The name you take, the length of time;
......

Use @keyframes space to get the name yourself {
0%{background:red}
50% {Background:green}
100% {Background:blue}

Compatibility
① Plus prefix:
-moz-Firefox
-webkit-Apple and Google
-o-Open Gate
②reset Reset technology and normalize technology
③<! Doctype> parsing mode
④csshack technology in IE clip prefix
IE6:-
IE7: *
IE8: \9 or
(IE6, 7 is added before the attribute.) IE9 is added after the property value)
⑤ condition Comment
<! --[if LTE ie6]>......<! [endif]-->
LTE IE6 below
GTE IE6 or more
GT IE6
⑥ Import Package (introduced)
Common compatibility issues
Solutions
① Transparency Opacity→filtter
②png background → guide pack (plugin)
③ fillet → guide bag, picture
④bfc→zoom:1 (numerical random) trigger BFC environment in IE called haslayout technology
⑤ie Browser has a 3px gap → add display:inline under float

First entry web knowledge point (vi)

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.