a{text-decoration: underline} /*链接无下划线none,有为underline*/
a:link {color: #00007ftext-decoration: underline} /*未访问的链接 */
a:visited {color: #65038etext-decoration: underline} /*已访问的链接*/
a:hover{color: #ff0000text-decoration: underline} /*鼠标在链接上 */
a:active {color: #ff0000text-decoration: underline} /*点击激活链接*/
如果一直都是蓝色不变,也可以直接
a{color:blue}
新建html文档,粘贴以下代码,保存后用浏览器打开,可以看到效果<!doctype html><link href='http://fonts.googleapis.com/css?family=Ultra&v2' rel='stylesheet' type='text/css'><style>body{background:#333}h1{font:normal 90px/1.5 'Ultra','Curlz MT','Bauhaus 93','Blackoak Std',Courier,Arialcolor:#7e9409position:absolutetop:85pxleft:10pxwidth:300px -moz-animation: 1s slidein -webkit-animation: 1s slidein -webkit-perspective: 600 -moz-perspective: 600px}@-moz-keyframes slidein { from {top:1550px} 85% {top:5px} to {top:85px}}@-webkit-keyframes slidein { from {top:1550px} 85% {top:5px} to {top:85px}}.myLogo,.myLogo a{ -moz-transition: all 2s ease-in-out 0s -webkit-transition:all 2s ease-in-out 0 transition:all 2s ease-in-out 0}.myLogo{position:relativedisplay:inline-blockzoom:1top:0left:0text-shadow:-2px -1px 1px #7e9409opacity: 0.8filter:alpha(opacity=50) -webkit-transform: rotateY(30deg) -moz-transform: rotateY(30deg) transform: rotateY(30deg)}h1:hover .myLogo { /* 3d-transform */ -webkit-transform: rotateY(0) -moz-transform: rotateY(0) transform: rotateY(0) text-shadow:0}.myLogo a{position:absolutetop:1pxleft:5pxcolor:#B7D902text-shadow:-1px -1px 1px #ffftext-decoration: none}h1:hover .myLogo a{left: 2px}</style> <h1> <span class="myLogo">百度经验分享 CSS3 3D效果</span></h1>