作者ewana (好无聊啊....)
看板Web_Design
标题[问题] 滑鼠滑过以後的连结文字变色
时间Sat Jan 5 16:51:53 2008
那个.....
我希望我滑鼠滑过去以後,连结的文字可以变色....
爬了文跟查一下,都说把下面这段文字贴上,在去改颜色即可
<style type="text/css">
a:active { text-decoration: none}
a:link { color: #3333FF; text-decoration: none}
a:visited { text-decoration: none}
a:hover { color: #FF3333; text-decoration: underline}
</style>
可我试过了以後发现不行....
因为之前没用过style type写规则,也不知道有没有该注意的地方被我漏了
所以想上来问问,不知道我那边的步骤做错了~QQ
以下为我的程式码,麻烦版友了,感恩啊~QQ
<div align="center" class="style4">
<p>妖魅</p>
<style type="text/css">
a:active { text-decoration: none}
a:link { color: #3333FF; text-decoration: none}
a:visited { text-decoration: none}
a:hover { color: #FF3333; text-decoration: underline}
</style>
<a href="blnovelmain0101.html" target="blmain" STYLE="text-decoration:none">
<p class="style5">第一章</p></a><a href="blnovelmain0102.html" target="blmain" STYLE="text-decoration:none">
<p class="style5">第二章</p></a>
----------------------------------------------------------
另外,其实我在那边自己尝试,东修西修的结果有一个连结有被我尝试出来~
可不知道为什麽按着步骤後再也出不来(甚至把它程式码复制贴上到别的地方後改连结改字串,结果还是不行)
想问一下,为什麽这组的连结可以变色?????
<body>
<blockquote class="style10">
<style type="text/css">
a:hover { color: #996600; text-decoration: underline}
</style>
<a href="BLnovel/01/blnovelnav0101.html" target="_self" STYLE="text-decoration:none" >
<span class="style11">妖魅</span></a>
不好意思麻烦版友了~<(_ _)>(三跪九叩拜)
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 125.229.19.72
1F:推 sweetwords:<a href="xx.htm">文字</a> 你 html 要看一下 囧>" 01/05 18:03
2F:→ sweetwords:更正:主要因为第一组用到 class style5 是没有设的 01/05 18:04
3F:推 ilake:试了 可以变阿 只是後面的 STYLE="text-decoration=none" 01/05 19:19
4F:→ ilake:让前面设定的 a:hover{text-decoration: underline}等於没用 01/05 19:22
6F:→ ewana:感恩~~~对这个语法不是很了解,研究去...Q__QX 01/05 20:57
7F:推 terrylchen:顺序错了 01/05 21:23
8F:→ ewana:想请问一下,第一组那边的style5如果要设的话,应该要将程式 01/05 22:02
9F:→ ewana:码放哪才对?(我前面後面都摆过了,好像都不会出现..QQ) 01/05 22:03