table新增空白行到首行
var str="";
str+="<tr bordercolor='#DEDEDE' bgcolor='#ffffff'>";
str+="<input type='hidden' id='id' name='tid'>";
str+="<td align='center' bordercolor='#DEDEDE'><input type='checkbox' name='isSelect' ></input></td>";
str+="<td bordercolor='#DEDEDE' width='120px'><input type='text' class='t' id='name' style='font-size:12px; color:black; text-align:center;width:120px' onChange='saveTrip(this)' > </td>";
str+="<td bordercolor='#DEDEDE' width='110px'><input type='text' class='t' id='part' style='font-size:12px; color:black; text-align:center;width:110px' > </td>";
str+="<td bordercolor='#DEDEDE' width='110px'><input type='text' class='t' id='subPart' style='font-size:12px; color:black; text-align:center;width:110px' > </td>";
str+="<td bordercolor='#DEDEDE' width='400px'><input type='text' class='t' id='purpose' style='font-size:12px; color:black; text-align:center;width:400px' > </td>";
str+="<td bordercolor='#DEDEDE' width='110px'><input type='text' class='t' id='scheduleStart' style='font-size:12px; color:black; text-align:center;width:110px' > </td>";
str+="<td bordercolor='#DEDEDE' width='110px'><input type='text' class='t' id='scheduleEnd' style='font-size:12px; color:black; text-align:center;width:110px' > </td>";
str+="<td bordercolor='#DEDEDE' width='50px'><input type='text' class='t' id='duration' style='font-size:12px; color:black; text-align:center;width:50px' > </td>";
str+="<td bordercolor='#DEDEDE' width='80px'><input type='text' class='t' id='destination' style='font-size:12px; color:black; text-align:center;width:80px' > </td>";
str+="<td bordercolor='#DEDEDE' width='80px'><input type='text' class='t' id='region' style='font-size:12px; color:black; text-align:center;width:80px' > </td>";
str+="<td bordercolor='#DEDEDE' width='80px'><input type='text' class='t' id='department' style='font-size:12px; color:black; text-align:center;width:80px' > </td>";
str+="<td align='center' bordercolor='#DEDEDE' width='60px'> <img src='${pageContext.request.contextPath}/FlatUI/img/edit2.png' id='report' width=18px height=18px/></a></td>";
str+="<td align='center' bordercolor='#DEDEDE' width='60px'> <img src='${pageContext.request.contextPath}/FlatUI/img/edit2.png' id='referrence' width=18px height=18px/></a></td>";
str+="</tr>";
$("#tableTrip").prepend(str);
table新增空白行到首行的更多相关文章
- js div及table首行顶部吸附示例
js div顶部吸附示例,例如这样: 以下为DIV顶部吸附示例:(此示例来自于网络,在此记录与分享!感谢原作者!) 示例1:兼容IE6 <div style="height:300px ...
- sed 命令多行到多行的定位方式
本文提要: sed 命令定位方式的分类 着重对 /pattern/,/pattern/ 的定位方式进行阐述 定位方式分类 总体上,只需要分为两类,即:x 和 x,y .如果在范围后加 ! 则表示取补集 ...
- JS table新增一行的时候 如何在新增的这一行把样式也加进去 例如变成<tr class="trd0">
JS table新增一行的时候 如何在新增的这一行把样式也加进去 例如变成<tr class="trd0">5 JS: var tab = document.get ...
- Python程序的首行
>问题 >>在一些python程序中的首行往往能够看见下面这两行语句中的一句 >>>#!/usr/bin/Python >>>#!/usr/bin ...
- css —— 图片环绕+首行缩进
1.利用css实现图片环绕文字的效果: 只需要给img标签设置float:left/right即可: 2.实现上段文字首行缩进两个字的效果: 使用 text-indent: 2em;即可(em为相对单 ...
- [整理][LaTex]小技巧之——首行缩进
0. 简介 在LaTex编辑时,有时会遇到这样一个有关于首行缩进的问题.在汉语环境的编辑下,习惯上每段会进行一个两个字的缩进.但是在默认编辑模式下,一个章节下的首段是没有首行缩进的,本文的目的主要是解 ...
- Java读取excel指定sheet中的各行数据,存入二维数组,包括首行,并打印
1. 读取 //读取excel指定sheet中的各行数据,存入二维数组,包括首行 public static String[][] getSheetData(XSSFSheet sheet) thro ...
- 用Eclipse+xdebug调试PHP总是在首行自动断点解决方法
问题描述: 使用Eclipse+PDT+xdebug调试PHP程序时,总是在程序的第一行(首行)自动断点,不方便调试. 解决方法: 分别在下面3个位置配置,取消 Break at First Line ...
- HTML5 的段落首行缩进
text-indent:0em;表示当前行不需要缩进,文本顶头开始.这个属性可以用在 div p等元素下面 文本首行的缩进(在首行文字之前插入指定的长度) p { line-height: 2em ...
随机推荐
- Linux服务器导入导出SVN项目
导出项目: # svnadmin dump /var/svn/pro1 > /mydata/pro1.backup 导入项目: 新建项目仓库: # svnadmin create /var/sv ...
- FZU 1627 Revival's road
矩阵快速幂. #pragma comment(linker, "/STACK:1024000000,1024000000") #include<cstdio> #inc ...
- node读写json文件(进阶)
该方法可用于修改配置文件,直接上代码 fs.readFile('test1.json','utf8',function (err, data) { if(err) console.log(err); ...
- iosTableView 局部全部刷新以及删除编辑操作
局部刷新方法 添加数据 NSArray *indexPaths = @[ [NSIndexPath indexPathForRow:0 inSection:0], [NSIndexPath index ...
- [妙味DOM]第一课:DOM基础概念、操作
知识点总结 childNodes.children子节点列表集合.nodeType节点类型.nodeName.nodeValue.attributes属性列表集合 childNodes和childre ...
- 2.Math对象
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- Zeppelin添加mysql解释器
安装Apache zeppelin 1 wget http://apache.fayea.com/zeppelin/zeppelin-0.6.2/zeppelin-0.6.2-bin-all.tgz ...
- JSP中 JSTL
1,JSTL是JSP的标准标签库的简称,JSP标准标签库包括5类:分别是核心标签库,国际化标签库,SQL标签库,XML标签库,函数标签库: 2,常用的就是核心标签库和SQL标签库: 核心标签库:前置名 ...
- PHP关于数组缓存JSON、serialize、var_export的说明
1.JSONJSON缓存变量主要是使用json_encode和json_decode函数,其中json_encode可以将变量变成文本格式存储到文件. // Store cache file_put_ ...
- ios 将彩色照片转化成黑白等几种类型
-(UIImage *)changeColoursImageTograyScaleImage:(UIImage *)anImage type:(int)type { CGImageRef imageR ...