使用纯CSS实现在鼠标经过一个表格的某一行的时候,要整行的背景颜色发生变化,以表明该行正中焦点:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
< html > < head > < meta charset = "utf-8" /> < title >change</ title > < style type = "text/css" > tr.change:hover { background-color:#00FF00 } </ style > </ head > < body > < h1 >鼠标经停变色</ h1 > < table width = "80%" border = "1" align = "center" > < tr class = "change" > < td > </ td > < td > </ td > </ tr > < tr class = "change" > < td > </ td > < td > </ td > </ tr > </ table > </ body > </ html > |
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容