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

请教CSS问题...
我在程序里动态改变一个控件的样式,CSS在样式表里有定义了,程序引用名字好象不可以用...提示MoveRowBgColor无效!求帮助...该怎么改
MoveRowBgColor   :样式表定义的CSS名称

e.Row.Attributes.Add( "onmousemove ",   "this.style.backgroundColor   =   MoveRowBgColor;this.style.cursor= 'hand ' ");




------解决方案--------------------
ding xia 和我一样问的问题没人回
------解决方案--------------------
MoveRowBgColor :样式表定义的CSS名称 ==> 名称是用class this.className = 'MoveRowBgColor '
------解决方案--------------------
MoveRowBgColor是样式的类名吧
脚本注意大小写
e.Row.Attributes.Add( "onmousemove ", "this.className= MoveRowBgColor;this.style.cursor= 'hand ' ");