css 对表格控制的问题??

natson 2003-02-07 10:46:04
一个简单的问题:

当鼠标移到连接所在表格的时候,怎么让整个表格的颜色都变?
...全文
23 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
natson 2003-02-09
  • 打赏
  • 举报
回复
楼上:
好的,这次是好的 ,谢谢了, 就是你给的颜色好丑哦~~ :p
natson 2003-02-07
  • 打赏
  • 举报
回复
fj47(易水寒沙) :经过研究之后,你的好像不好用哦~~

arclala(呱呱) :
代码是不是还可以写成:
<table width="80%" border="0" cellspacing="0" cellpadding="2" onmouseover="this.style.background='#Caeaff'" onmouseout="this.style.background='';this.style.color=''" >
<tr>
<td align="center"><a href="mouse.html">|-鼠标特效-|</a></td>
</tr>
<tr>
<td align="center"><a href="mouse.html">|-鼠标特效-|</a></td>
</tr>
<tr>
<td align="center"><a href="mouse.html">|-鼠标特效-|</a></td>
</tr>
</table>


onmouseover中的 this.style.color='#000000' 好像没什么用啊?
natson 2003-02-07
  • 打赏
  • 举报
回复
如果把整个表格都作上连接呢?
natson 2003-02-07
  • 打赏
  • 举报
回复
谢谢,收入囊中!!
fj47 2003-02-07
  • 打赏
  • 举报
回复
<td align="center" onmouseout='this.style.backgroundColor="#ffffff"' onmouseover='this.style.backgroundColor="#B6DDFF"'><a href="http://www.index2008.com" title="http://www.index2008.com
我的工作网站哦,多多支持" target="_blank" >中国首页</a></td>
arclala 2003-02-07
  • 打赏
  • 举报
回复
<table width="80%" border="0" cellspacing="0" cellpadding="2" onmouseover="this.style.background='#Caeaff';this.style.color='#000000'" onmouseout="this.style.background='';this.style.color=''" >
<tr>
<td align="center"><a href="mouse.html">|-鼠标特效-|</a></td>
</tr>
<tr>
<td align="center"><a href="mouse.html">|-鼠标特效-|</a></td>
</tr>
<tr>
<td align="center"><a href="mouse.html">|-鼠标特效-|</a></td>
</tr>
</table>
fj47 2003-02-07
  • 打赏
  • 举报
回复
楼主,经过研究,我的代码可用,看完整的代码

<table width="100" border="0" cellpadding="0" cellspacing="0" bgcolor="#FF0000"><tr><td align="center" onmouseout='this.style.backgroundColor="#ff0000"' onmouseover='this.style.backgroundColor="#B6DDFF"'><a href="http://www.index2008.com" title="http://www.index2008.com
我的工作网站哦,多多支持" target="_blank" >中国首页</a></td></tr></table>
把整个表格都作上连接
<table width="200" border="1" cellpadding="0" cellspacing="0" bgcolor="#FF0000" onmouseover='this.style.backgroundColor="#B6DDFF"' onmouseout='this.style.backgroundColor="#ff0000"'>
<tr>
<td width="100" align="center"><a href="http://www.index2008.com" title="http://www.index2008.com
我的工作网站哦,多多支持" target="_blank" >中国首页</a></td>
<td width="100" align="center" onmouseover='this.style.backgroundColor="#B6DDFF"' onmouseout='this.style.backgroundColor="#ff0000"'> </td>
</tr>
</table>

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧