(1)用expression 鼠标滑过变色: <style type="text/css"><!-- table { background-color:#000000; cursor:hand; width:100%; }td {onmouseover: expression ...
(1)用expression 鼠标滑过变色: <style type="text/css"><!-- table { background-color:#000000; cursor:hand; width:100%; }td {onmouseover: expression ...
tr:nth-child(odd) { background-color: #ccc; } tr:nth-child(even) { background-color: ...
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>js控制隔行变色</title> </head> < ...
...
...
; <title>两种方式让css隔行变色js和css3属性.box li:nth-of-t ...
用到的鼠标事件:(1)鼠标经过 onmouseover;(2)鼠标离开 onmouseout 核心思路:鼠标经过 tr 行的时候,当前行会改变背景颜色,鼠标离开的时候去掉背景颜色。 注意:第一行( ...
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>css控制表格隔行变色</title> <style type ...