摘要:
写网页时,为方便浏览会需要设置table,GridView 等对象的样式。比如行(Row) 背景色交替变换。下面贴一个小例子作为学习笔记:js中写如下代码,在页面中或单独的外部js文件中,Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 //设置表格行的样式为颜色交替2 function SetTbBgcolor() {3 var trs = document.getElementById("table1").getEl 阅读全文