<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Typ…
uniteTdCells(tableId) { var table = document.getElementById(tableId); for (let i = 0; i < table.rows.length; i++) { for (let c = 0; c < table.rows[i].cells.length; c++) { if (c == 0 || c == 1) { //选择要合并的列序数,去掉默认全部合并 for (let j = i + 1; j < table.…
1,一行变色 <script> function trBg(){ var tab=document.getElementById("table"); var tr=tab.getElementsByTagName("tr"); ;i<tr.length;i++){ ==){ tr[i].style.backgroundColor="#fff"; tr[i].onmouseover=function(){ this.style.b…
先上代码 <script type="text/javascript" language="javascript"> var idTmr; function getExplorer() { var explorer = window.navigator.userAgent; //ie if (explorer.indexOf("MSIE") >= 0) { return 'ie'; } …