日期:2014-05-18  浏览次数:20351 次

关于CSS失效的问题
我在页面中有一个Gridview控件,实现了表头固定不动,EXCEL文件的导出,这时这个页面中的CSS失效,例如<table style="width: 100%" border="1">
<tr onmouseover="c=this.style.backgroundColor='#00A9FF'" onmouseout="c=this.style.backgroundColor='#FFFFFF'" style="color:#333333;background-color:#F7F6F3;">
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
没有一点反应,请问什么原因?


------解决方案--------------------
在事件中添加"c="是什么意思?
而且背景颜色不是backgroundColor 而是 background-color
------解决方案--------------------
不太明白lz的描述
------解决方案--------------------
CSS code
onmouseover="c=this.style.backgroundColor;this.style.backgroundColor='#e6e6fa'" onmouseout="this.style.backgroundColor=c"

------解决方案--------------------
楼方好像没看2楼的的回复啊.
将那个"C="取掉,asp.net里面背景色的CSS代码是:background-color而不是backgroundColor