<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://zhidian.wuute.com/html5dev/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://zhidian.wuute.com/html5dev/feed.php">
        <title>HTML5知典 26:88</title>
        <description></description>
        <link>http://zhidian.wuute.com/html5dev/</link>
        <image rdf:resource="http://zhidian.wuute.com/html5dev/lib/tpl/bootstrap3_1/images/favicon.ico" />
       <dc:date>2026-05-20T18:32:13+09:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-attr-begin?rev=1492849394&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-attr-contain?rev=1492849407&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-attr-end?rev=1492849419&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-checked?rev=1492849432&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-disabled?rev=1492849444&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-empty?rev=1492767093&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-enabled?rev=1492849468&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-first-of-type?rev=1492849480&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-gen-sibling?rev=1492849491&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-last-child?rev=1492849503&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-last-of-type?rev=1492849516&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-not?rev=1492849529&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-nth-child?rev=1492766517&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-nth-last-child?rev=1492849554&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-nth-last-of-type?rev=1492849567&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-nth-of-type?rev=1492849579&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-only-child?rev=1492849592&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-only-of-type?rev=1492849604&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-root?rev=1492849616&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-selection?rev=1492849629&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-target?rev=1492849383&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/26/88/start?rev=1496490884&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://zhidian.wuute.com/html5dev/lib/tpl/bootstrap3_1/images/favicon.ico">
        <title>HTML5知典</title>
        <link>http://zhidian.wuute.com/html5dev/</link>
        <url>http://zhidian.wuute.com/html5dev/lib/tpl/bootstrap3_1/images/favicon.ico</url>
    </image>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-attr-begin?rev=1492849394&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:23:14+09:00</dc:date>
        <title>[attribute^=value]</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-attr-begin?rev=1492849394&amp;do=diff</link>
        <description>[attribute^=value]

The [attribute^=value] 选择器匹配元素属性值带指定的值开始的元素。

语法
  div[class^=&quot;test&quot;]
{
background:#ffff00;
}
值

例子

HTML
&lt;div class=&quot;first_test&quot;&gt;The first div element.&lt;/div&gt;
&lt;div class=&quot;second&quot;&gt;The second div element.&lt;/div&gt;
&lt;div class=&quot;test&quot;&gt;The third div element.&lt;/div&gt;
&lt;p class=&quot;test&quot;&gt;This is some text in a paragraph.&lt;/p&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-attr-contain?rev=1492849407&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:23:27+09:00</dc:date>
        <title>[attribute*=value]</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-attr-contain?rev=1492849407&amp;do=diff</link>
        <description>[attribute*=value]

[attribute*=value] 选择器匹配元素属性值包含指定值的元素。

语法
div[class*=&quot;test&quot;]
{
	background:#ffff00;
}
值

例子

HTML
&lt;div class=&quot;first_test&quot;&gt;这是第一个 div 元素。&lt;/div&gt;
&lt;div class=&quot;second&quot;&gt;这是第二个 div 元素。&lt;/div&gt;
&lt;div class=&quot;test&quot;&gt;这是第三个 div 元素。&lt;/div&gt;
&lt;p class=&quot;test&quot;&gt;这是段落中的文本。&lt;/p&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-attr-end?rev=1492849419&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:23:39+09:00</dc:date>
        <title>[attribute$=value]</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-attr-end?rev=1492849419&amp;do=diff</link>
        <description>[attribute$=value]

[attribute$=value] 选择器匹配元素属性值带规定的值结尾的元素。

语法
div[class$=&quot;test&quot;]
{
background:#ffff00;
}
值

例子

HTML
&lt;div class=&quot;first_test&quot;&gt;The first div element.&lt;/div&gt;
&lt;div class=&quot;second&quot;&gt;The second div element.&lt;/div&gt;
&lt;div class=&quot;test&quot;&gt;The third div element.&lt;/div&gt;
&lt;p class=&quot;test&quot;&gt;This is some text in a paragraph.&lt;/p&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-checked?rev=1492849432&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:23:52+09:00</dc:date>
        <title>:checked</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-checked?rev=1492849432&amp;do=diff</link>
        <description>:checked

:checked 选择器匹配每个选中的输入元素（仅适用于单选按钮或复选框）。

语法
input:checked
{
background:#ff0000;
}

值

例子

HTML
&lt;form action=&quot;&quot;&gt;
&lt;input type=&quot;radio&quot; checked=&quot;checked&quot; value=&quot;male&quot; name=&quot;gender&quot; /&gt; Male&lt;br&gt;
&lt;input type=&quot;radio&quot; value=&quot;female&quot; name=&quot;gender&quot; /&gt; Female&lt;br&gt;
&lt;input type=&quot;checkbox&quot; checked=&quot;checked&quot; value=&quot;Bike&quot; /&gt; I have a bike&lt;br&gt;
&lt;input type=&quot;checkbox&quot; value=&quot;Car&quot; /&gt; I have a car 
&lt;/form&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-disabled?rev=1492849444&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:24:04+09:00</dc:date>
        <title>:disabled</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-disabled?rev=1492849444&amp;do=diff</link>
        <description>:disabled

:disabled 选择器匹配每个禁用的的元素（主要用于表单元素）。

语法
input[type=&quot;text&quot;]:disabled
{
background:#dddddd;
}
值

例子

HTML
&lt;form action=&quot;&quot;&gt;
First name: &lt;input type=&quot;text&quot; value=&quot;Mickey&quot; /&gt;&lt;br&gt;
Last name: &lt;input type=&quot;text&quot; value=&quot;Mouse&quot; /&gt;&lt;br&gt;
Country: &lt;input type=&quot;text&quot; disabled=&quot;disabled&quot; value=&quot;Disneyland&quot; /&gt;&lt;br&gt;
&lt;/form&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-empty?rev=1492767093&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-21T18:31:33+09:00</dc:date>
        <title>:empty</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-empty?rev=1492767093&amp;do=diff</link>
        <description>:empty

:empty选择器选择每个没有任何子级的元素（包括文本节点）。

语法
&lt;element&gt;:empty { /* style properties */ }
值

例子

HTML
&lt;div class=&quot;box&quot;&gt;&lt;!-- I will be lime --&gt;&lt;/div&gt;
&lt;div class=&quot;box&quot;&gt;I will be red&lt;/div&gt;
&lt;div class=&quot;box&quot;&gt;
  &lt;!-- I will be red because of the whitespace around this comment --&gt;
&lt;/div&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-enabled?rev=1492849468&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:24:28+09:00</dc:date>
        <title>:enabled</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-enabled?rev=1492849468&amp;do=diff</link>
        <description>:enabled

:enabled 选择器匹配每个启用的的元素（主要用于表单元素）。

语法
input[type=&quot;text&quot;]:enabled
{
background:#ffff00;
}
值

例子

HTML
&lt;form action=&quot;&quot;&gt;
First name: &lt;input type=&quot;text&quot; value=&quot;Mickey&quot; /&gt;&lt;br&gt;
Last name: &lt;input type=&quot;text&quot; value=&quot;Mouse&quot; /&gt;&lt;br&gt;
Country: &lt;input type=&quot;text&quot; disabled=&quot;disabled&quot; value=&quot;Disneyland&quot; /&gt;&lt;br&gt;
&lt;/form&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-first-of-type?rev=1492849480&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:24:40+09:00</dc:date>
        <title>:first-of-type</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-first-of-type?rev=1492849480&amp;do=diff</link>
        <description>:first-of-type

:first-of-type选择器匹配元素其父级是特定类型的第一个子元素。

语法
p:first-of-type
{
background:#ff0000;
}
值

例子

HTML
&lt;h1&gt;This is a heading&lt;/h1&gt;
&lt;p&gt;The first paragraph.&lt;/p&gt;
&lt;p&gt;The second paragraph.&lt;/p&gt;
&lt;p&gt;The third paragraph.&lt;/p&gt;
&lt;p&gt;The fourth paragraph.&lt;/p&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-gen-sibling?rev=1492849491&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:24:51+09:00</dc:date>
        <title>element1~element2</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-gen-sibling?rev=1492849491&amp;do=diff</link>
        <description>element1~element2

element1~element2 选择器匹配出现在 element1 后面的 element2。

element1 和 element2 这两种元素必须具有相同的父元素，但 element2 不必紧跟在 element1 的后面。

语法
p~ul
{
background:#ff0000;
}</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-last-child?rev=1492849503&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:25:03+09:00</dc:date>
        <title>:last-child</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-last-child?rev=1492849503&amp;do=diff</link>
        <description>:last-child

:last-child选择器用来匹配父元素中最后一个子元素。

语法
p:last-child
{
background:#ff0000;
}
值

例子

HTML
&lt;p&gt;The first paragraph.&lt;/p&gt;
&lt;p&gt;The second paragraph.&lt;/p&gt;
&lt;p&gt;The third paragraph.&lt;/p&gt;
&lt;p&gt;The fourth paragraph.&lt;/p&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-last-of-type?rev=1492849516&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:25:16+09:00</dc:date>
        <title>:last-of-type</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-last-of-type?rev=1492849516&amp;do=diff</link>
        <description>:last-of-type

:last-of-type选择器匹配元素其父级是特定类型的最后一个子元素。

语法
p:last-of-type
{
background:#ff0000;
}
值

例子

HTML
&lt;h1&gt;This is a heading&lt;/h1&gt;
&lt;p&gt;The first paragraph.&lt;/p&gt;
&lt;p&gt;The second paragraph.&lt;/p&gt;
&lt;p&gt;The third paragraph.&lt;/p&gt;
&lt;p&gt;The fourth paragraph.&lt;/p&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-not?rev=1492849529&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:25:29+09:00</dc:date>
        <title>:not</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-not?rev=1492849529&amp;do=diff</link>
        <description>:not

:not(selector) 选择器匹配每个元素是不是指定的元素/选择器。

语法
:not(p)
{
background:#ff0000;
}

值

例子

HTML
&lt;h1&gt;这是一个标题&lt;/h1&gt;

&lt;p&gt;这是一个段落.&lt;/p&gt;
&lt;p&gt;这是另一个段落.&lt;/p&gt;

&lt;div&gt;这是div元素的一些文本。&lt;/div&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-nth-child?rev=1492766517&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-21T18:21:57+09:00</dc:date>
        <title>:nth-child</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-nth-child?rev=1492766517&amp;do=diff</link>
        <description>:nth-child

:nth-child(n) 选择器匹配属于其父元素的第 N 个子元素，不论元素的类型。

语法
element:nth-child(an + b) { 
  /*规则*/
}
值
值描述:nth-child(2n+1)规定奇数行。nth-child(odd)规定奇数行。nth-child(2n)</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-nth-last-child?rev=1492849554&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:25:54+09:00</dc:date>
        <title>:nth-last-child()</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-nth-last-child?rev=1492849554&amp;do=diff</link>
        <description>:nth-last-child()

:nth-last-of-type(n)选择器匹配同类型中的倒数第n个同级兄弟元素。

n可以是一个数字，一个关键字，或者一个公式。

语法
p:nth-last-child(2)
{
background:#ff0000;
}
值

例子

HTML
&lt;p&gt;The first paragraph.&lt;/p&gt;
&lt;p&gt;The second paragraph.&lt;/p&gt;
&lt;p&gt;The third paragraph.&lt;/p&gt;
&lt;p&gt;The fourth paragraph.&lt;/p&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-nth-last-of-type?rev=1492849567&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:26:07+09:00</dc:date>
        <title>:nth-last-of-type()</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-nth-last-of-type?rev=1492849567&amp;do=diff</link>
        <description>:nth-last-of-type()

:nth-last-of-type(n)选择器匹配同类型中的倒数第n个同级兄弟元素。

n 可以是一个数字，一个关键字，或者一个公式。

语法
p:nth-last-of-type(2)
{
background:#ff0000;
}
值

例子

HTML
&lt;h1&gt;This is a heading&lt;/h1&gt;
&lt;p&gt;The first paragraph.&lt;/p&gt;
&lt;p&gt;The second paragraph.&lt;/p&gt;
&lt;p&gt;The third paragraph.&lt;/p&gt;
&lt;p&gt;The fourth paragraph.&lt;/p&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-nth-of-type?rev=1492849579&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:26:19+09:00</dc:date>
        <title>:nth-of-type()</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-nth-of-type?rev=1492849579&amp;do=diff</link>
        <description>:nth-of-type()

:nth-of-type(n)选择器匹配同类型中的第n个同级兄弟元素。

n可以是一个数字，一个关键字，或者一个公式。

语法
p:nth-of-type(2)
{
background:#ff0000;
}
值

例子

HTML
&lt;h1&gt;This is a heading&lt;/h1&gt;
&lt;p&gt;The first paragraph.&lt;/p&gt;
&lt;p&gt;The second paragraph.&lt;/p&gt;
&lt;p&gt;The third paragraph.&lt;/p&gt;
&lt;p&gt;The fourth paragraph.&lt;/p&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-only-child?rev=1492849592&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:26:32+09:00</dc:date>
        <title>:only-child</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-only-child?rev=1492849592&amp;do=diff</link>
        <description>:only-child

:only-child选择器匹配属于父元素中唯一子元素的元素。

语法
p:only-child
{
background:#ff0000;
}
值

例子

HTML
&lt;div&gt;&lt;p&gt;This is a paragraph.&lt;/p&gt;&lt;/div&gt;

&lt;div&gt;&lt;span&gt;This is a span.&lt;/span&gt;&lt;p&gt;This is a paragraph.&lt;/p&gt;&lt;/div&gt;

&lt;p&gt;&lt;b&gt;注意:&lt;/b&gt; Internet Explorer 8以及更早版本的浏览器不支持 :only-child选择器.&lt;/p&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-only-of-type?rev=1492849604&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:26:44+09:00</dc:date>
        <title>:only-of-type</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-only-of-type?rev=1492849604&amp;do=diff</link>
        <description>:only-of-type

:only-of-type选择器匹配属于同类型中唯一同级元素。

语法
p:only-of-type
{
background:#ff0000;
}
值

例子

HTML
&lt;div&gt;&lt;p&gt;This is a paragraph.&lt;/p&gt;&lt;/div&gt;

&lt;div&gt;&lt;p&gt;This is a paragraph.&lt;/p&gt;&lt;p&gt;This is a paragraph.&lt;/p&gt;&lt;/div&gt;</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-root?rev=1492849616&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:26:56+09:00</dc:date>
        <title>:root</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-root?rev=1492849616&amp;do=diff</link>
        <description>:root

:root选择器用匹配文档的根元素。

在HTML中根元素始终是HTML元素。

语法
:root
{
background:#ff0000;
}

值

例子

参考

相关页面

	*  :empty
	*  :target

外部链接

	*</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-selection?rev=1492849629&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:27:09+09:00</dc:date>
        <title>::selection</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-selection?rev=1492849629&amp;do=diff</link>
        <description>::selection

::selection选择器匹配元素中被用户选中或处于高亮状态的部分。

::selection只可以应用于少数的CSS属性：color, background, cursor,和outline。

语法
::selection
{
color:#ff0000;
}
::-moz-selection
{
color:#ff0000;
}</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-target?rev=1492849383&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-22T17:23:03+09:00</dc:date>
        <title>:target</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/sel-target?rev=1492849383&amp;do=diff</link>
        <description>:target

＃ 锚的名称是在一个文件中链接到某个元素的URL。元素被链接到目标元素。

:target选择器可用于当前活动的target元素的样式。

语法
:target
{
border: 2px solid #D4D4D4;
background-color: #e5eecc;
}
值</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/26/88/start?rev=1496490884&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-06-03T20:54:44+09:00</dc:date>
        <title>选择器参考</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/26/88/start?rev=1496490884&amp;do=diff</link>
        <description>选择器参考

定义

在CSS中，选择器是一种用于选择需要添加样式的元素的条件指定。

概述

CSS的选择器大致可分为以下几大类：

	*  类选择器（Class selectors） 
通过设置元素的 class 属性，可以为元素指定类名。</description>
    </item>
</rdf:RDF>
