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 ...
随机推荐
- Activity生命周期方法调用finish后的不同表现
今天宿舍一个哥们出去面试遇到了这个面试题:"在activity oncreate()调用finish()"生命周期是怎么样的? 我赶紧写了些demo,发现确实很有趣: packag ...
- HDU 5821 Ball
记录一下每个位置最终到达的位置.然后每次操作排序. #pragma comment(linker, "/STACK:1024000000,1024000000") #include ...
- ZOJ 1655 FZU 1125 Transport Goods
迪杰斯特拉最短路径. 1.every city must wait till all the goods arrive, and then transport the arriving goods t ...
- iOS毛玻璃擦除效果
思路:首先我的思路放两个imageView在Controller里把高清的图片放在下面,带有毛玻璃效果的图片放在上面. //在Controller的view上加一个手势代码如下(温馨提示,开启imae ...
- 《JS权威指南学习总结》
JS权威指南学习总结:http://www.cnblogs.com/ahthw/category/652668.html
- (转)Java程序员应该了解的10个面向对象设计原则
面向对象设计原则是OOPS(Object-Oriented Programming System,面向对象的程序设计系统)编程的核心,但大多数Java程序员追逐像Singleton.Decorator ...
- HDU 1054 Strategic Game(无向二分图的最大匹配)
( ̄▽ ̄)" //凡无向图,求匹配时都要除以2 #include<iostream> #include<cstdio> #include<algorithm&g ...
- WindowsAzure上把WebApp和WebService同时部署在一个WebRole中
注:本文为个人学习转载,原文地址:http://blog.csdn.net/zztfj/article/details/6740327 最近开发一个和WindowsAzure相关的应用,该应用还调用了 ...
- MVC3+EF4.1学习系列(八)-----利用Repository and Unit of Work重构项目
项目最基础的东西已经结束了,但是现在我们的项目还不健全 不利于测试 重复性代码多 层与层之间耦合性高 不利于扩展等问题.今天的这章 主要就是解决这些问题的.再解决这些问题时,自己也产生了很多疑 ...
- top.location != self.location
top.location != self.location 就是说当前窗体的url和父窗体的 url是不是相同 这个是为了防止别的网站嵌入你的网站的内容(比如用iframe嵌入的你的网站的页面)