Css+div+jquery Actual Combat Video Summary

Source: Internet
Author: User
Tags transparent color

in the beef brisket to learn css and Div, in JS learning Css+js package, here again review again, also as leak check, also calculate a comparison system review it again.

CSS core content mainly includes four aspects: standard flow, box model, floating and positioning, and in the B/S front page layout, they also play a decisive role. Box model to determine the specific size of each element, borders and spacing, and so on, floating positioning and standard flow to determine the order of the elements in the page and location layout, and some basic CSS style such as background image, color, etc. can form a variety of web pages.

One of the positioning techniques in div:css, which appears as a separate module. Relative to span. CSS positioning also includes relative and absolute, such as position, which can be used together to make the page appear more complex positioning effect.

JS: In order to make the CSS design page can show a dynamic effect, and in order to solve other languages in the client and server side of the slow interaction between the problem, you can use JavaScript technology, jquery is a well-packaged and lightweight JS library that is compatible with a wide variety of browsers, making it easier to design various dynamic effects on various elements of the page.

And the two have an inseparable relationship: careful analysis found that in the JS design animation effect, many seemingly very complex effects, in fact, by setting the CSS style page elements to control. The fade is controlled by the opacity style, while scrolling, accelerating deceleration and so on are just some of the animation effects, such as the element position, Simple CSS styles such as size, or DOM element attributes, plus some simple methods such as settimeout and setinterval, are encapsulated by simple functions. For convenience, the same JS also provides some ways to set or get CSS styles.

CSS leak fill, filter:


Ie:opacity:filter (alpha=50);//w3c opacity:0.5/*2, Blur Blur */.blur{filter:progid:dximagetransform.microsoft.blur ( Pixelradius=4,makeshadow=false);} /*3 Transparent Color */.chroma{filter:chroma (color=ff6800);/* Remove the Golden */}/*4, flip flip */.flip1{filter:fliph;/* horizontal Flip */}.flip2{filter: flipv;/* Vertical Flip */}.FLIP3{FILTER:FLIPV fliph;/* horizontal, vertical simultaneously flip */}/*5, matte */.mask{filter:mask (color= #8888FF);/* Matte */}/*6, wave */ Span.wave1{filter:wave (add=0,freq=2,lightstrength=70,phase=75,strength=4);}


JS: Li Tinghui in the video is quite comprehensive, for jquery, the video is mainly about the actual application of some of the methods that are often encountered here to summarize:

1. Implement concatenating: Encapsulates $ () to return a jquery object. The jquery object understood here is actually the same as the Base Base library core object in the blog frontend example. By defining a constructor object, a number of encapsulated methods are defined for the object's prototype object for external invocation, and after each execution, the object itself is returned so that the next implementation of the concatenating call will continue. This greatly facilitates the programming staff, which also fully embodies the jquery write Less,do more design philosophy.

2. Common methods:

1. Get and Set properties

HTML (), CSS (), Val (), Scrollleft/top (), Height ()/width (), Outerwidth (True)/height (True)

2. Show hidden

Hide () and show (), Slidedown () and Slideup (), toggle () and Slidetoggle (), FadeOut ()/fadein ()//The use of parameters is noted here Slow,fast, Normal or directly for the number

3. Animation effect

Animate (), dequeue ()

4. Other

Is () method, scroll (), AppendTo (), plugin usage, browser version and type of judgment Browser,json data format, etc.

The above is a summary of some of the basics of the jquery video. Also included are some of the underlying Ajax wrapper functions such as Ajaxstart () and Ajaxstop (), Ajaxcomplete (), $ (). Get (), $ (). Post (), and so on.

Summary: The combination of CSS and JS together constitute a rich Web page today, based on jquery is a package library of JS, in the package, for browser differences, should try to use the ability to control and try to discard version control way to encapsulate. At the same time, for the packaging good JS Library, also should try to understand the principle of encapsulation, in order to achieve know it, know its why, in order to build our own JS library in the future.



Css+div+jquery Actual Combat Video Summary

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.