aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/css/_doublecolon_spelling-error/index.html
blob: fd89014d3927c12aa948474fbcd544301ebe368f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
title: '::spelling-error'
slug: 'Web/CSS/::spelling-error'
translation_of: 'Web/CSS/::spelling-error'
---
<div>{{CSSRef}}{{SeeCompatTable}}</div>

<p><strong><code>::spelling-error</code></strong> <a href="/en-US/docs/Web/CSS">CSS</a> <a href="/en/CSS/Pseudo-elements">伪元素</a> 表示浏览器标记为不正确拼写的文本段。</p>

<pre class="brush: css no-line-numbers">::spelling-error {
  color: red;
}</pre>

<h2 id="可用的属性">可用的属性</h2>

<p>只有一小部分CSS属性可用于 <code>::spelling-error</code> 伪元素选择器:</p>

<ul>
 <li>{{cssxref("color")}}</li>
 <li>{{cssxref("background-color")}}</li>
 <li>{{cssxref("cursor")}}</li>
 <li>{{cssxref("caret-color")}}</li>
 <li>{{cssxref("outline")}} and its longhands</li>
 <li>{{cssxref("text-decoration")}} and its associated properties</li>
 <li>{{cssxref("text-emphasis-color")}}</li>
 <li>{{cssxref("text-shadow")}}</li>
</ul>

<h2 id="语法">语法</h2>

<pre class="syntaxbox">::spelling-error</pre>

<h2 id="标准">标准</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('CSS4 Pseudo-Elements', '#selectordef-spelling-error', '::spelling-error')}}</td>
   <td>{{Spec2('CSS4 Pseudo-Elements')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="浏览器兼容性">浏览器兼容性</h2>

<div>


<p>{{Compat("css.selectors.spelling-error")}}</p>
</div>

<h2 id="参见">参见</h2>

<ul>
 <li>{{cssxref("::grammar-error")}}</li>
</ul>