简单教程
提交运行
代码编辑器:
<!DOCTYPE html> <meta charset="utf-8"><link href="/static/next/css/tryit.css?v=2017082407" rel="stylesheet"/> <style> a.ex1:hover,a.ex1:active {color:red;} a.ex2:hover,a.ex2:active {font-size:150%;} a.ex3:hover,a.ex3:active {background:red;} a.ex4:hover,a.ex4:active {font-family:monospace;} a.ex5:visited,a.ex5:link {text-decoration:none;} a.ex5:hover,a.ex5:active {text-decoration:underline;} </style> <p>将鼠标移至链接上查看其样式改变.</p> <p><a class="ex1" href="/css/">这个链接改变颜色</a></p> <p><a class="ex2" href="/css/">这个链接改变字体大小</a></p> <p><a class="ex3" href="/css/">这个链接改变背景颜色</a></p> <p><a class="ex4" href="/css/">这个链接改变字体类型</a></p> <p><a class="ex5" href="/css/">这个链接改变文字修饰</a></p> <footer>简单教程,简单编程<br/>Copyright © 简单教程 www.twle.cn</footer>
运行结果: