如何用html使当鼠标移动到某一断文字上时改变字体的大小和颜色

如题所述

<html>
<head>
<title>test</title>
<style>
a{text-decoration:none;}
a:link{font-size:12px;color:green}
a:hover{font-size:18px;color:orange}
</style>
</head>
<body>
    <a href="#">测试</a>
</body>
</html>

温馨提示:答案为网友推荐,仅供参考