This article mainly introduces the jquery browser CSS3 close-up approach, examples of the use of jquery-compatible browser skills, the need for friends to refer to the following
This example describes the CSS3 feature-close approach to jquery browser. Share to everyone for your reference. The specific analysis is as follows:
CSS3 fully absorbed many years of web development needs, absorbing a lot of new features. such as Border-radius
One of the most exciting aspects of the CSS3 feature is the enhancement of the selector, such as the ability of the property selector to select a tag based on a property value, and the position selector to select the tag based on the position of the child element.
Many browsers currently used, such as IE7, mainly support CSS2. Most of the property selectors are not ideal.
It's because of the browser's compatibility with CSS3. Each browser does not have a better standard support for it.
jquery is programmed with pre-JavaScript to provide a selector for almost all CSS3 standards. Developers can use these selectors to easily select various elements. Used for JavaScript programming.
<script type= "Text/javascript" > $ (function () {$ ("Li:nth-child (2)"). AddClass ("Altcss"); }); </script>
The above is the whole content of this article, I hope that everyone's learning has helped, more relevant content please pay attention to topic.alibabacloud.com!