zoukankan
html css js c++ java
鼠标经过,表格变色
今天写页面的时候写的,鼠标经过表格行,表格变色
演示效果:
<style type="text/css"> #ordered{598px;background:#a5a5a5;text-align:center;} #ordered th{background-color:#d8e4c6;height:30px;line-height:30px;color: #404040;font-weight: bold;} #ordered tr{background-color:#fff;cursor:pointer; event:expression(onmouseover = function(){this.style.backgroundColor='#fffbe8'},onmouseout = function(){this.style.backgroundColor='#FFFFFF'}); } #ordered tr:hover{background:#fffbe8;} #ordered td{height:25px;line-height:25px;} </style> <table cellspacing="1" id="ordered"> <tr > <th>品名</th> <th>型号</th> <th>市场标价</th> <th>优惠价格</th> <th>订购数量</th> </tr> <tr > <td>OX-6鸿枫</td> <td>800*111*14mm</td> <td>208元/㎡</td> <td>198元/㎡</td> <td>12</td> </tr> <tr > <td>OX-6鸿枫</td> <td>800*111*14mm</td> <td>208元/㎡</td> <td>198元/㎡</td> <td>12</td> </tr> <tr > <td>OX-6鸿枫</td> <td>800*111*14mm</td> <td>208元/㎡</td> <td>198元/㎡</td> <td>12</td> </tr> <tr > <td>OX-6鸿枫</td> <td>800*111*14mm</td> <td>208元/㎡</td> <td>198元/㎡</td> <td>12</td> </tr> <tr > <td>OX-6鸿枫</td> <td>800*111*14mm</td> <td>208元/㎡</td> <td>198元/㎡</td> <td>12</td> </tr> <tr > <td>OX-6鸿枫</td> <td>800*111*14mm</td> <td>208元/㎡</td> <td>198元/㎡</td> <td>12</td> </tr> </table>
提示:可以先在文本框内,根据需要修改代码后再运行
查看全文
相关阅读:
14:求满足条件的3位数
1696:逆波兰表达式
筛法求素数 6分
1751:分解因数
1750:全排列
1788:Pell数列
666:放苹果
06:寻宝
04:最匹配的矩阵
雷电
原文地址:https://www.cnblogs.com/joe235/p/1167802.html
最新文章
CCNP路由实验之十二 MPLS
浅析VS2010反汇编
怎样隐藏Windows7 系统保留分区
jquery html5 file 上传图片显示图片
利用牛顿迭代法求解非线性方程组
ios You app information could not be saved. Try again. If the problem persists, contact us
codeforces 553 D Nudist Beach
小胖说事20--------GCD笔记
ssh bitbucket github
Code-JS-日期:万年历查询
热门文章
软件-设计软件-CATIA:百科
开源-C#:.Net 常用类库列表
笔记-JS:高亮特效
笔记-JS-复选框操作
树-雪曼将军树:百科
树-剥桉:百科
树-剥桉-彩色桉树:百科
Code-C#:定时任务
笔记-CSS-e:nth-chid
28:出现次数超过一半的数
Copyright © 2011-2022 走看看