<!-- title="这是鼠标悬停时显示的文字" 鼠标悬停时,显示相关的文字--> <a href="#" title="这是鼠标悬停时显示的文字"> 访问链接标签 <font style="color:red;">百度百科</font></a>
a{ text-decoration:none;/*去掉下划线*/ } a:link{/*第一次访问前的字体颜色*/ color:blue; } a:hover{/*鼠标悬停时字体显示的字体颜色*/ color:green; text-decoration:line-through; } a:active{/*鼠标点击按下未松开时显示的字体颜色*/ color:red; } a:visited{/*鼠标点击按下松开后显示的字体颜色*/ color:pink; }
------------------------------------------------------------------------------------------------------