搜索文档
首页
HTML/CSS
JavaScript
服务端开发
Java教程
移动端
数据库
当前位置:
首页
HTML/CSS
CSS 参考手册
CSS 参考手册
源代码
清空
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS3 text-decoration-color属性动画示例- 基础教程(div.cn)</title> <style> a, a:visited { color: blue; font-size: 24px; text-decoration: underline; -webkit-animation: test 4s infinite; /* Chrome, Safari, Opera */ animation: test 4s infinite; } /* Standard syntax */ @keyframes test { 50% { -moz-text-decoration-color: red; /* Firefox */ -text-decoration-color: red; } } </style> </head> <body> <p> <strong>警告</strong>:text-decoration-color属性仅在Firefox中受支持,并且需要-moz-前缀。 您最好避免使用此属性。</p> <p> <strong>注意</strong>:以下超链接的文本装饰线的颜色从其初始值“ blue”变为“ red”,然后再次回到初始值“ blue”直至无限。 时间。</p> <p> <a href="#">这是超链接。</a> </p> </body> </html>
运行结果