mozilla

リビジョンの比較

junk

Change Revisions

リビジョン 370397:

リビジョン 370397 (編集者: ethertank / 編集日時: )

リビジョン 372823:

リビジョン 372823 (編集者: ethertank / 編集日時: )

タイトル:
Test 4
Test 4
URL スラグ:
User:ethertank/Test_4
User:ethertank/Test_4
内容:

リビジョン 370397
リビジョン 372823
n7    <div>n7    <pre class="brush:js">
8      {{CSSRef}}8mdn.localString({
9    </div>9    "ca": "",
10    <h2 id="Summary" name="Summary">10    "cs": "",
11      概要11    "de": "",
12    </h2>12    "el": "",
13    <p>13    "es": "",
14      <a href="/ja/docs/CSS/Pseudo-classes" title="Pseudo-classes14    "fa": "",
>">CSS 疑似クラス</a>の <code>:last-of-type</code> は、その親要素の中で特定のタイプを持つ子要 
>素の内、最後のものにマッチします。 
15    </p>15    "fi": "",
16    <h2 id="Syntax" name="Syntax">16    "fr": "",
17      構文17    "he": "",
18    </h2>18    "hr": "",
19    <pre class="syntaxbox">19    "hu": "",
20element:last-of-type { <em>style properties</em> }20    "id": "",
21    "it": "",
22    "ja": "",
23    "ka": "",
24    "ko": "",
25    "ms": "",
26    "nl": "",
27    "pl": "",
28    "ro": "",
29    "ru": "",
30    "sq": "",
31    "th": "",
32    "tr": "",
33    "vi": "",
34    "bn-BD": "",
35    "fy-NL": "",
36    "ga-IE": "",
37    "pt-BR": "",
38    "pt-PT": "",
39    "zh-CN": "",
40    "zh-TW": "",
41    "en-US": ""
42});
t22    <div>t
23      <h2 id="Example" name="Example">
24        例
25      </h2>
26      <p>
27        <code>p</code> 要素の子要素の内の最後の <code>em</code> 要素にスタイルを適用する例
>を以下に示します。 
28      </p>
29      <h3 id="HTML">
30        HTML
31      </h3>
32      <pre class="brush: html">
33&lt;p&gt;
34  &lt;em&gt;私は&lt;/em&gt;
35  &lt;strong&gt;町に&lt;/strong&gt;
36  &lt;em&gt;ライム&lt;/em&gt;
37  &lt;strong&gt;を買いに行きました。&lt;/strong&gt;
38&lt;/p&gt;
39 
40&lt;p&gt;
41  &lt;em&gt;違う、&lt;/em&gt;
42  &lt;span&gt;&lt;em&gt;ライム&lt;/em&gt;&lt;/span&gt;
43  &lt;strong&gt;違う。&lt;/strong&gt;
44  &lt;em&gt;ライム!&lt;/em&gt;
45  &lt;span&gt;&lt;em&gt;ライム!&lt;/em&gt; &lt;strike&gt;違う。&lt;/str
>ike&gt;&lt;/span&gt; 
46  &lt;strong&gt;それはレモン。&lt;/strong&gt;
47&lt;/p&gt;
48</pre>
49      <h3 id="CSS">
50        CSS
51      </h3>
52      <pre class="brush: css">
53p em:last-of-type {
54  background-color: lime;
55}
56</pre>
57      <div>
58        {{ EmbedLiveSample('Example','100%','120') }}
59      </div>
60    </div>
61    <h2 id="Specifications" name="Specifications">
62      仕様
63    </h2>
64    <table class="standard-table">
65      <thead>
66        <tr>
67          <th scope="col">
68            仕様書
69          </th>
70          <th scope="col">
71            策定状況
72          </th>
73          <th scope="col">
74            コメント
75          </th>
76        </tr>
77      </thead>
78      <tbody>
79        <tr>
80          <td>
81            {{SpecName('CSS4 Selectors', '#last-of-type-pseudo', 
>':last-of-type')}} 
82          </td>
83          <td>
84            {{Spec2('CSS4 Selectors')}}
85          </td>
86          <td>
87            No change.
88          </td>
89        </tr>
90        <tr>
91          <td>
92            {{SpecName('CSS3 Selectors', '#last-of-type-pseudo', 
>':last-of-type')}} 
93          </td>
94          <td>
95            {{Spec2('CSS3 Selectors')}}
96          </td>
97          <td>
98            Initial definition.
99          </td>
100        </tr>
101      </tbody>
102    </table>
103    <h2 id="Browser_compatibility" name="Browser_compatibility">
104      ブラウザ実装状況
105    </h2>
106    <div>
107      {{CompatibilityTable}}
108    </div>
109    <div id="compat-desktop">
110      <table class="compat-table">
111        <tbody>
112          <tr>
113            <th>
114              機能
115            </th>
116            <th>
117              Chrome
118            </th>
119            <th>
120              Firefox (Gecko)
121            </th>
122            <th>
123              Internet Explorer
124            </th>
125            <th>
126              Opera
127            </th>
128            <th>
129              Safari
130            </th>
131          </tr>
132          <tr>
133            <td>
134              基本サポート
135            </td>
136            <td>
137              1.0
138            </td>
139            <td>
140              {{CompatGeckoDesktop("1.9.1")}}
141            </td>
142            <td>
143              9.0
144            </td>
145            <td>
146              9.5
147            </td>
148            <td>
149              3.2
150            </td>
151          </tr>
152        </tbody>
153      </table>
154    </div>
155    <div id="compat-mobile">
156      <table class="compat-table">
157        <tbody>
158          <tr>
159            <th>
160              機能
161            </th>
162            <th>
163              Android
164            </th>
165            <th>
166              Firefox Mobile (Gecko)
167            </th>
168            <th>
169              IE Mobile
170            </th>
171            <th>
172              Opera Mobile
173            </th>
174            <th>
175              Safari Mobile
176            </th>
177          </tr>
178          <tr>
179            <td>
180              基本サポート
181            </td>
182            <td>
183              2.1
184            </td>
185            <td>
186              {{CompatGeckoMobile("1.9.1")}}
187            </td>
188            <td>
189              9.0
190            </td>
191            <td>
192              10.0
193            </td>
194            <td>
195              3.2
196            </td>
197          </tr>
198        </tbody>
199      </table>
200    </div>
201    <h2 id="See_also" name="See_also">
202      関連情報
203    </h2>
204    <ul>
205      <li>{{Cssxref(":nth-last-of-type")}}
206      </li>
207      <li>{{Cssxref(":first-of-type")}}
208      </li>
209      <li>{{Cssxref(":nth-of-type")}}
210      </li>
211      <li>
212        <a href="http://www.w3.org/TR/2001/CR-css3-selectors-2001
>1113/#last-of-type-pseudo">CSS3 Reference</a> 
213      </li>
214    </ul>

前に戻る