原文:簡單的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