原文:简单的css js控制table隔行变色

用expression 鼠标滑过变色: lt style type text css gt lt table background color: cursor:hand width: td onmouseover: expression onmouseover function this.style.borderColor blue this.style.color red this.style ...

2012-10-31 15:43 0 14514 推荐指数:

查看详情

css 控制隔行变色

tr:nth-child(odd) { background-color: #ccc; } tr:nth-child(even) { background-color: ...

Mon Aug 05 22:54:00 CST 2019 0 997
js控制表格隔行变色

<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>js控制隔行变色</title> </head> < ...

Fri Aug 31 22:51:00 CST 2018 0 1869
JS实现表格隔行变色

用到的鼠标事件:(1)鼠标经过 onmouseover;(2)鼠标离开 onmouseout 核心思路:鼠标经过 tr 行的时候,当前行会改变背景颜色,鼠标离开的时候去掉背景颜色。 注意:第一行( ...

Wed Nov 27 03:30:00 CST 2019 1 503
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM