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>
提示:可以先在文本框内,根据需要修改代码后再运行
查看全文
相关阅读:
骑士飞行棋 C#代码详解
C#中的static静态变量的用法
Break和Continue的一些注意事项
枚举类型
html 01-认识Web和Web标准
css 17-CSS3的常见边框汇总
css 16-浏览器的兼容性问题
css 15-Sass入门
css 14-CSS3属性详解:Web字体
css 13-CSS3属性:Flex布局图文详解
原文地址:https://www.cnblogs.com/joe235/p/1167802.html
最新文章
parsel库
re库的使用
正则表达式
软件工程之全面总结
软件工程小结之面向对象
软件工程小结之需求分析与软件设计
SQL Server 2008数据类型
机房收费系统小结之--实现上下机人数同步
sql语句如何获得当前日期
机房收费系统小结之如何添加报表?
热门文章
vb6如何将MSHFlexGrid控件中的内容导出为Excel
如何解决sql server 2008附加数据库失败
vb6.0如何让窗体跟随鼠标运动
网站性能指标及优化
Restful设计规范,前后端分离的优缺点对比
转载:C#中事件的由来
转载:C# 中的委托
转载:C# 之泛型详解
需要学习的内容
关于C#中get和set
Copyright © 2011-2022 走看看