HTMLやスタイルシートに関することなどWebサイト構築のクライアント側の話題や,XMLに関すること。
●CSS 2.1のセレクタの概要。IEでどこまでサポートされているか。
element.attrが ~= と同じなのが目を引いた。
| パターン | 意味 | Described in section |
|---|---|---|
| * | Matches any element. | Universal selector |
| E Matches any E element (i.e., an element of type E). Type selectors | ||
| E F Matches any F element that is a descendant of an E element. Descendant selectors | ||
| E > F Matches any F element that is a child of an element E. Child selectors | ||
| E:first-child Matches element E when E is the first child of its parent. The :first-child pseudo-class | ||
| E:link E:visited Matches element E if E is the source anchor of a hyperlink of which the target is not yet visited (:link) or already visited (:visited). The link pseudo-classes | ||
| E:active E:hover E:focus Matches E during certain user actions. The dynamic pseudo-classes | ||
| E:lang(c) Matches element of type E if it is in (human) language c (the document language specifies how language is determined). The :lang() pseudo-class | ||
| E + F Matches any F element immediately preceded by a sibling element E. Adjacent selectors | ||
| E[foo] Matches any E element with the "foo" attribute set (whatever the value). Attribute selectors | ||
| E[foo="warning"] Matches any E element whose "foo" attribute value is exactly equal to "warning". Attribute selectors | ||
| E[foo~="warning"] Matches any E element whose "foo" attribute value is a list of space-separated values, one of which is exactly equal to "warning". Attribute selectors | ||
| E[lang|="en"] Matches any E element whose "lang" attribute has a hyphen-separated list of values beginning (from the left) with "en". Attribute selectors | ||
| DIV.warning Language specific. (In HTML, the same as DIV[class~="warning"].) Class selectors | ||
| E#myid Matches any E element with ID equal to "myid". ID selectors |
2001.08.02 二者択一アンケート [CGI] [Ruby]
2001.06.12 アンケートシステム [CGI] [Ruby]
2001.05.26 CGIなどのあるWebサイト [CGI] [今日のリンク]
2001.04.22 IE独自のスタイルシート・プロパティ
2001.03.18 クッキーの生成 (2) [CGI] [Ruby]
2001.03.02 RubyによるCGIの書き方 [Ruby] [今日のリンク]
2001.02.25 Webでのメールフォーム [CGI] [Ruby]
2001.01.12 Wikiクローン [Ruby]
2000.11.18 JavaScriptによるメニューバー [HTML] [JavaScript]
2000.11.17 JavaScriptによるポップアップメニュー,HTMLスタイルの操作など [JavaScript]
2000.06.18 CGI検索サイト [CGI] [今日のリンク]
2000.05.20 CGIで出力できるHTTPヘッダーフィールド [CGI]
2000.05.07 XML + XSLT [XML]
2000.04.08 table要素やul要素も見栄えを指示している [HTML]
1999.08.20 多くの人が見れるようなHTMLの書き方
1999.06.02 表示フォントを固定する
1999.04.22 画面の上と左にジャンプボタンを付ける。
1999.04.20 縦線,横線に色を付ける
1999.04.10 HTMLとCSSの関係
1999.03.30 Internet Explorerにおけるスタイルシート
1998.09.22 HTMLにおける構造と表現の分離について
Netsphere Laboratories http://www.nslabs.jp/
[PR]