编辑下面的代码:【加编码】
<html> <head> <style> p { text-decoration: underline; text-decoration-color: red; -moz-text-decoration-color: red; /* 针对 Firefox 的代码 */ } </style> </head> <body> <p> 线条的颜色现在应该是红色! </p> <p><b>注意:</b>几乎所有的主流浏览器都不支持 text-decoration-color 属性。</p> <p><b>注意:</b>Firefox 支持另一个可替代该属性的属性,即 -moz-text-decoration-color 属性。</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂