js 表格隔行颜色
作者:bea
通过判断是否为单数即可 然后设置下行的背景颜色就可以了 if(i%2==1) row.style.background = "#CCCCff"; else row.style.background = "#CCCCCC";
通过判断是否为单数即可
然后设置下行的背景颜色就可以了
if(i%2==1) row.style.background = "#CCCCff";
else row.style.background = "#CCCCCC";
有用 |
无用
然后设置下行的背景颜色就可以了
if(i%2==1) row.style.background = "#CCCCff";
else row.style.background = "#CCCCCC";
猜你喜欢
您可能感兴趣的文章:
- JavaScript 双级下拉菜单实现代码
- JavaScript利用split函数按规定截取字符串(获取邮箱用户名)
- JavaScript 生成随机数并自动大小排序
- javascript 面向对象全新理练之原型继承
- javascript 面向对象全新理练之继承与多态
- javascript 面向对象全新理练之数据的封装
- jquery的ajax从纯真网(cz88.net)获取IP地址对应地区名
- jQuery 跨域访问问题解决方法
- jQuery Selectors(选择器)的使用(二、层次篇)
- jQuery Selectors(选择器)的使用(一、基本篇)
- IE与firefox下Dhtml的一些区别小结
- checkbox全选/取消全选以及checkbox遍历jQuery实现代码
- 两种WEB下的模态对话框 (asp.net或js的分别实现)
- JavaScript 报表展示实现代码
- JavaScript Object的extend是一个常用的功能
- 鼠标拖动动态改变表格的宽度的js脚本 兼容ie/firefox
- 用Javascript检查Adobe PDF插件是否安装的实现代码
- JS类的封装及实现代码
- Jquery选择器 $实现原理