.spectd{
background:url("images/xp.png") no-repeat center;
}
.spectr{event:expression(onmouseover=function(){this.style.background='green';},onmouseout=function(){this.style.backgroundColor='white'})}
实体营业厅
3
查看详情
想问下,如何能让鼠标在这一行上面时,这一行所有的td背景色都变。谢谢解答。
回复讨论(解决方案)
我觉得其实已经变色了,被图片挡着,你看不出来了
没有 ,我试过直接把背景色 改成绿色,能看到绿色,背景图片并没有填满整个td,所以背景色变了能看到,我用的IE9
把background的属性分开设置就好了。
background-image:url("images/xp.png");
background-repeat:no-repeat;
background-position:center;
查看更多关于问个表格的问题_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did103183