Date: 2013-6-8 Source: gbin1.com
Online Demo
Label.css is a good choice if you click on the page to generate descriptive texts. It uses pure CSS code to help you add descriptive text of page elements or create an identifier.
Supported options include: the position where the text is displayed, including top, bottom, left, right, and middle. Two types of animation effects are supported: fade-in and fade-out and floating. If you need to quickly add
Differences between class and ID selectorsLearning the class selector and ID selector, we will find that there are a lot of similarities between them, is not the two can be common? Let's not be anxious to summarize their similarities and differences in the first few years:same point: can be applied to any elementDifferent points:1.The ID selector can only be used once in a document . Unlike
The following selector is displayed on Twitter:
.show-grid [class*="span"] { background-color: #eee; text-align: center; border-radius: 3px; min-height: 30px; line-height: 30px;}Which of your shoes knows this method.
A: This is an attribute wildcard selector. In the example provided by you, you will find any elements containing the span style in the container that references the. show-grid style and set the corresponding style.
In th
The notation for multi-class selectors. For example:
#my. c1.c2 {color:red;}. c1.c2 {color:red;}
These are supported by browsers such as Ie7+/ff/opera/safari.
In IE6, however, the latter class name overrides the previous class name, that is, the above example is IE6 understood as:
#my. c2 {color:red;}. c2 {color:red;}
Similarly:
#my. c1.c2.c3 {color:red;}I
Tags: that should all be known. elements: the label starts to the end. For example:the content between , the red part is the element. The content of the element: the portion between the beginning and end of the label, the "content between P " in the red section above, which is the content of the element.pseudo-Class: the element that is specific to the state.pseudo-element: The content of the element .Pseudo-elements and pseudo-classes are difficult t
Copy Code code as follows:
REM article title: Using the VBS class to implement CSS buttons
REM Author: Yanek
REM Contact: aspboy@263.net
Class Cssbutton
Public Name
Public BackColor
Public bordercolor
Public Font
Public FontColor
Public Width
Public Text
Public URL
Public Mouseovercolor
Public Function Generatestyletag ()
' Create ' S
This class is mainly to review the contents of the previous lesson, will use Div to create a few circles, let class and ID to set their style.
The attributes involved:
Display:inline-block
border-radius:100%;
margin-left:5px
will be speaking in the course of the following
Stylesheet.css
/*add your CSS below!*/
div {
display:inline-block;
explained is: Overflow:hidden: The function is only hides the element overflow, Visibility:hidden, the function is hides the element but still affects the layout, the element occupies the space size is still in OH.
In addition,: after Pseudo-class +content can let the size of the image vertical center, similar to the removal of floating effect, IE6/7 does not support: After Pseudo-class, we can use another
Css: first-child pseudo class selector usage introduction, first-child Selector
Css: first-child pseudo class selector usage:This selector can match the first element in the element set.: The first-child pseudo-class selector must be used with other selectors, for example:
Style: There are three types of styling properties1. Inline property Style: Use the Style property inside the element,Copied to the inside of the element is called an inline style.2. Internal label FormThe first method above only allows a label to have some kind of property style, but using the internal label form, it can be a group of labels with a certain style. The procedure is as follows:A. Add a style tag and define the class name (such as Linkst
In CSS, the class selector is displayed with a point number:
. Center {Text-align:center}
In the above example, all HTML elements that have the center class are centered.
In the following HTML code, the H1 and P elements all have the center class. This means that both will comply with the rules in the. Center select
A class is used to define one or more elements based on user-defined criteria. A more appropriate analogy is the script: A class can define the story line for each character in the script, and you can use it through css,javascript. So you can use class= "Frodo" on one page, class
You can target an element to have no child elements by using the :empty pseudo-class. With browser support down to IE9, it's solid, easy-to-select empty elements without any additional markup.Be aware this whitespace is considered a ' child ', so would not work :empty if the element have no children, but have space bet Ween the opening and closing tags.DOCTYPE HTML>HTML>Head> Linkhref= "Https://fonts.googleapis.com/
CSS: class selector, cssclass Selector
This article describes the basic usage of class selectors in css: setting attributes for tags of the same type.
Code organized from w3school: http://www.w3school.com.cn
:
Today encountered mobile phone side of the CSS in a tag active does not work, originally wanted to loop a tag, to the current a tag to add class to solve, can feel a little trouble, after checking the information to understand to solve this problem, only need to add a touchstart empty event can be.Examples are as follows:Mobile-side CSS implements active Pseudo-
Css pseudo-class selector creates a login box form, Selector
When a pseudo-class selector is used to make the mouse hover, the text box appears orange dotted line border. When the mouse is activated, the background color becomes pale orange.
Use css to create a rectangle with rounded corner of the text box, and create
DOCTYPE HTML>HTMLLang= "en">Head> MetaCharSet= "UTF-8"> title>Documenttitle> styletype= "Text/css">A:link/*link the color of the natural state*/ {Color:Red; }a:visited/*already visited the link discoloration*/ {Color:Green; }a:hover/*The mouse is placed on the link color*/ {Background-color:Grey;Color:Black; }a:active/*change color when clicking on a link*/ {Color:Yellow; }A:focus{font-
The pseudo-class selector for CSS is really love and hate, each time is very perfect to be confused, or to do a summary.
: Last-of-type Select last element
Divclass= "box"> P>1 always believe in good thingsP> a>2 is about to happena> P>3 always believe in good thingsP> P>4 always believe in good thingsP> a>5 is about to happena> a>6 is about to happena>Div>P:last-of-type { ba
Web page Production WEBJX article introduction: : Nth-child () working principle.
This is a CSS selector, a real pseudo class selector, which is nth-child (), and here's an example of using it.UL Li:nth-child (3n+3) {Color: #ccc;}
The above CSS is what to use, it is in the unordered list of the selection is 3 times times the number of columns. That's
inserting content into the web, in the CSS2.1 era, relies on javascript for implementation. But after entering the CSS3 we can achieve by CSS3 pseudo-class ": Before", ": After" and CSS3 pseudo-element ":: Before", ":: After", the key is to rely on the "content" property in CSS3. This property, however, does not work for the img and input elements.
Content with CSS pseudo-
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.