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 ...
随机推荐
- oracle 解析json格式
1. CREATE OR REPLACE PACKAGE PKG_ANALYSE_COMMON IS -- AUTHOR : YZCHEN -- CREATED : 2013/11/26 14:12: ...
- STM32笔记总结
1.命名规则 2.#pragma pack使用 #pragma pack 1保证字节对齐 置结构体的边界对齐为1个字节,也就是所有数据在内存中是连续存储的struct s{ char ch; ...
- Chapter 2 Open Book——23
Mike interrupted us then — he was planning an epic battle of the blizzard in the parking lot after s ...
- Hack写法
文章来源: http://www.w3cplus.com/css/create-css-browers-hacks 条件注释:http://www.w3cplus.com/create-an-ie-o ...
- 数学#扩展欧几里德 POJ 1061&2115&2891
寒假做的题了,先贴那时写的代码. POJ 1061 #include<iostream> #include<cstdio> typedef long long LL; usin ...
- HDU 2509 Be the Winner(取火柴博弈2)
传送门 #include<iostream> #include<cstdio> #include<cstring> using namespace std; int ...
- Lucene基础(2)
上一篇:Lucene基础(1) 一.Lucene术语 Document, Field, Term, Query, Analyzer相信在其中大多数在之前已经理解了...对其中部分概念详细说明 Docu ...
- CSS3 学习小结
写样式时有时遇到浏览器兼容问题:-webkit-transition:chrome和safari-moz-transition:firefox-ms-transition:IE-o-transitio ...
- JVM 几个重要的参数
<本文提供的设置仅仅是在高压力, 多CPU, 高内存环境下设置> 最近对JVM的参数重新看了下, 把应用的JVM参数调整了下. 几个重要的参数 -server -Xmx3g -Xms3 ...
- tomcat下获取当前路径的url中含有空格解决方法
参考博文(http://www.360doc.com/content/11/1009/17/4602013_154657565.shtml) web项目发布到Tomcat之后,如果tomcat是安装在 ...