jquery选择器


下面先来复习下css选择器

1.The id Selector

Example

#para1
{
text-align:center;
color:red;
}
注意: Do  NOT  start an ID name with a number! 

2.The class Selector

In the example below, all HTML elements with class="center" will be center-aligned:

Example

.center {text-align:center;}
You can also specify that only specific HTML elements should be affected by a class.

Example

p.center {text-align:center;}


你可能感兴趣的:(jquery选择器)