最终控制是CSS
用JAVASCRIPT可动态地改对象的CSS CLASS :
id.className='newClass';
用JAVASCRIPT可动态地改对象的CSS CLASS :
id.className='newClass';
解决方案 »
- js里面this的具体用法,在线等
- 怎样改回.js文件的默认运行方式?
- body的onload事件可以在js文件中调用吗?在线等
- dojo的Tree控件的数据源是不是只能有一个
- 谁有《JAVASCRIPT编程宝典》的源码,官方网站现在下不了!
- iframe里面的js教本如何调用iframe外面的函数?
- 版区新人报导,在线等回复,学习javascript,Html!
- 滚动条问题,今晚在这等了!!
- 微软的最新安全补丁禁止使用HHCtrl关闭窗口了
- vue打包部署非根目录时, public中的图片引入路径怎么修改引入路径
- 字符串问题 ,比如有一个字符串"我你他",可否将这个字符串按一定规则加密成其它字符,需要还原!!
- 请教返回时图片刷新
table
{
font-size: 12px;
color:#000000;
}
</style>
td
{
font-size: 12px !important;
color:#000000 !important;
}
</style>
CSS.css文件中:
td.over {font-size:12pt;cursor:hand;}
td.out{font-size:9pt;}
-----------------------
body中:
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td width="5%" align="center" valign="top"> </td>
<td width="95%" onMouseOver="this.className='over'" onMouseOut="this.className='out'"><font color="#666666" size="2">sssss</font></td>
</tr>
</table></td>
</tr>
<tr>
<td background="image/line.gif"><img src="image/block.gif" width="100" height="1"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="5%" align="center" valign="top"> </td>
<td width="95%" onMouseOver="this.className='over'" onMouseOut="this.className='out'"><font color="#666666" size="2">sssssssss</font></td>
</tr>
</table></td>
</tr>
<tr>
<td background="image/line.gif"><img src="image/block.gif" width="100" height="1"></td>
</tr>
<tr>
<td background="image/line.gif"><img src="image/block.gif" width="100" height="1"></td>
</tr>
</table>