CSS選擇器
一個完整的標(biāo)簽稱為元素,元素里面有屬性名,屬性值。選擇器相當(dāng)于WHERE子句,結(jié)果就是返回符合WHERE子句的元素,可能是多個。
.class
class值=class,含有class屬性,且值為class的元素。
a
標(biāo)簽名=a,含有標(biāo)簽名為a
#id
id值=id,含有屬性名為id,且值為id的元素。
el.class
標(biāo)簽名=el and class值=class,含有標(biāo)簽名為el,含有class屬性,且值為class的元素。
posted on 2013-03-31 10:26 paulwong 閱讀(231) 評論(0) 編輯 收藏 所屬分類: J2SE