取消当前vim的高亮
2016-03-07 16:03
225 查看
<!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-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> <style type="text/css"> thead { color:red; } </style> <script type="text/javascript"> window.onload = function() { //前2行套上thead标签 var table = document.getElementById('tab1'); var row_01 = table.getElementsByTagName('tr')[0]; var row_02 = table.getElementsByTagName('tr')[1]; var cloneRow_01 = row_01.cloneNode(true); var cloneRow_02 = row_02.cloneNode(true); var thead = document.createElement('thead'); var tbody = table.getElementsByTagName('tbody')[0]; thead.appendChild(cloneRow_01); thead.appendChild(cloneRow_02); tbody.removeChild(row_01); tbody.removeChild(row_02); table.insertBefore(thead, tbody); } </script> </head> <body> <table id="tab1" border="1"> <tr> <td>A</td> <td>B</td> </tr> <tr> <td>A1</td> <td>B1</td> </tr> <tr> <td>A2</td> <td>B2</td> </tr> <tr> <td>A3</td> <td>B3</td> </tr> </table> </body> </html>
相关文章推荐
- C#程序中使用LINQ to XML来查询XML格式数据的实例
- NSDictionary转换成JSON字符串
- jquery mobile 入门5 (预加载与缓存页面)
- 使用HttpClient和WebRequest时POST一个对象的写法
- 使用iphone作为远程仓库的方案
- Android MediaStore裁剪图片分析
- Deepin linux下apache安装
- weblogic问题整理
- 消息摘要算法-HMAC算法
- 跟踪分析Linux内核的启动过程--实验报告 分析 及知识重点
- 使用多线程创建单例对象
- 激光雷达反射强度与物质
- win7系统兼容模式怎么找回?win7系统找回兼容模式的方法
- C++继承和多态
- android DiskLruCache解析,硬盘缓存
- MFC写入文件的尴尬——让ofstream流行起来
- Html5 css reset
- Java中的ReentrantLock和synchronized两种锁定机制的对比
- __thread
- mysql命令大全