The word "CSS" is so strange that it seems to me more like a label that identifies a particular state.
And the classes in the program.
Pseudo-Class with: Following the selector, identifies some states
:: Indicates CSS3 some new pseudo class, the suggestion all uses::. I don't support CSS3 's browser this year.
Examples of these pseudo classes:
Link links are
CSS Id and Class selectorIf you want to set CSS styles in HTML elements, you need to set the "id" and "class" selectors in the element.One, ID selectorThe ID selector can specify a specific style for an HTML element that is labeled with a specific ID.The HTML element sets the ID selector with the id attribute, and the
Classification and function of Pseudo-class:Note: This table is quoted from the W3school tutorialThe classification and function of pseudo-elements:Next, let the blogger use some vivid examples (previous assignments or small works) to illustrate the use and effects of several commonly used pseudo-classes, other readers can try themselves:: ActiveThe general effect for the mouse click, the element added special effects, when the mouse release, the effect disappears. Use it on the click of the but
Php-implemented CSS Update class instance. CSS Update class instance implemented by php CSSUpdate. class. php class file is as follows: 12345678910111213141516171819202122232425262728293031323334353637383940
Class is used to define one or more elements according to user-defined standards. A more appropriate example is a script: a class can define the story line of each character in the script. You can use this class through css tutorials and webpage special effects. Therefore, you can use
IDS can only be used once in a Web page. Of course, even if an ID is used more than once in a Web page, its CSS style can still be implemented, but the general rules of the universal standard are used once. Because ID in HTML can give HTML tags special attributes such as JS action, table conveys values and so on characteristics so different from a class can use how many times, and a
Original: jquery modifies class attributes and CSS stylesjquery modifies class attributes and CSS stylesClass Property Modificationthe Class Property is the Class property, which specifies the name of the category.when specifying
CSS pseudo-classes are special effects that you can use to add some selectors.
GrammarSyntax for pseudo-classes:Selector:pseudo-class {property:value;}CSS classes can also use pseudo-classes:Selector.class:pseudo-class {property:value;}
Anchor pseudo-ClassIn a browser that supports
jquery modifies class attributes and CSS styles Class Property Modificationthe Class property is the Class property, which specifies the name of the category. when specifying a style with a class selector, you need to specify the
inserted after the title content. This is the pseudo-element: the role of After.: The content of after pseudo-class can also be followed by other parameters,One: String for example:1Styletype= "Text/css" >.test:after{: "test Code" }; 3 style>4 div class= "test" > Test div: div> The result of the operation is shown as: Test div: Test codeTwo: attr (x), attr is
distance from the outer border,6, the border size fixed after the increase of Padding, and then change the original border size, is for div right and bottom operation, the change is the left and the bottom of the distance.7, padding of the various situations, the element is supported in the line, margin line elements only support around, not support up and down.8, positioning (absolute positioning, relative positioning)A: Absolute Positioning Position:absoluteA.1 when the position is set to abs
The jquery support method is used to manipulate CSS properties of HTML elementsThe following method provides a CSS action method for jquery:
AddClass () – adds one or more CSS classes to the specified element.
Removeclass () – Deletes one or more CSS classes for the specified element.
Toggleclass () – Toggles betwee
This article mainly explains how to modify the class attributes and CSS styles of jQuery. For more information, see.
Class attribute modification
Specifies the class name.When specifying a style with the class selector, you must specify the
About positioning in CSS using sub-parent (subclass absolute position and parent class relative position)
Foreword: Recently in learning Javaweb front-end CSS, about the positioning of CSS may sometimes be used to the sub-father, due to my limited level if there is any place to say wrong, please point out that
This article mainly introduces the CSS class selector and ID selector difference, small series think very good, and now share to everyone, but also for everyone to do a reference. Follow the small part together to see it, hope to help everyone better learn CSS class selector and ID selector.
css| Web page
CSS pseudo classes are used to add special effects to certain selectors.
CSS Pseudo Class (pseudo-classes) instance:
Hyperlinks
This example shows how to add a different color to a hyperlink in a document.
Hyperlink 2
This example shows how to a
One of the methods is to change the CSS class of page elements. In traditional JavaScript, we usually implement it by processing the classname feature of HTML Dom; jquery provides three methods to implement this function. Although they share the same idea with traditional methods, they save a lot of effort.
Code . -"Jquery makes JavaScript code concise !"
1. addclass ()-add
Class attribute Modification
Class attributes, which are class attributes, specify the name of the classes.When specifying a style with a class selector, you need to specify the class name, which is the value of the class attribu
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.