代码编辑器:
x
1
2
<meta charset="utf-8">
3
<link href="/static/next/css/tryit.css?v=2017082407" rel="stylesheet"/>
4
<style>
5
p
6
{
7
text-decoration: underline;
8
text-decoration-color: red;
9
text-decoration-color: red; /* 针对 Firefox 的代码 */
10
}
11
</style>
12
<p>
13
线条的颜色现在应该是红色!
14
</p>
15
16
<p><b>注意:</b>几乎所有的主流浏览器都不支持 text-decoration-color 属性。</p>
17
<p><b>注意:</b>Firefox 支持另一个可替代该属性的属性,即 -moz-text-decoration-color 属性。</p>
18