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);
时间: 2024-08-26 06:02:49

table新增空白行到首行的相关文章

ElementUI Table 首行固定

本文地址: https://www.cnblogs.com/veinyin/p/12101047.html 需求描述:首行固定,吸附在表头下,数据多时其他行可以纵向滚动 方案一  两个表格拼凑 第一个表格展示头部和固定行 第二个表格展示其它数据 示意图如下 适用场景:仅横向 纵向均无滚动条时可用 若有横向滚动条,两个表格的滚动条是分开的,会出现滚动A  B不动,或滚动B A不动的情况,Windows下会展示两个横向滚动条,不美观 若有纵向滚动条,在Windows下滚动条是默认有宽度的,滚动条的宽

alter table新增字段操作究竟有何影响?(上篇)

很久以前就有个疑问,见过一些表设计时会留出几个reverse的字段,目的是为了以后扩展,但此时设计的字段类型.长度等都是预计的,未来是否可用,不好说,那为什么会这么做呢?可能的原因是:"我现在设定好字段,需要的时候直接用就行了,不需要新增字段的操作". 那么,问题就是,新增字段的操作究竟有什么影响?增加表字段的时候,是否会锁表?对DML.DDL有什么影响?如果搞清楚这些,才能对上面的问题给出科学的答案. 为了证明增加字段的操作究竟做了什么,有什么影响,打算使用10046事件来看看. S

jquery table新增一行,并且绑定时间事件(My97)

废话不多说,先上code 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <title></title> 6 <meta charset="utf-8" /> 7 <link href=&

html首行缩进、悬停效果

首行缩进:在块元素如(<div style="text-indent: 2em;">)设置首行缩进两个字符,则其子元素的块级元素如<dt>.<li>.<p>等会自动缩进两个字符,但通用段落标签<p>默认会换行多出一行空间(默认下外边距为1em),如要少去空行可设置其标签下外边距为0(<p style="margin-bottom: 0em;">)或外边距为0(<p style="

JS table新增一行的时候 如何在新增的这一行把样式也加进去 例如变成&lt;tr class=&quot;trd0&quot;&gt;

JS table新增一行的时候 如何在新增的这一行把样式也加进去 例如变成<tr class="trd0">5 JS: var tab = document.getElementById("tab"); var newTr = tab.insertRow(-1); newTr.id = "tr_" + trId; var newTdContent = newTr.insertCell(1); //第一列 var newTdCaoZuo

Android实现ListView或GridView首行/尾行距离屏幕边缘距离

Android上ListView&GridView默认行都是置顶的,这样会很丑. 一般为了解决这个问题都会在首行或尾行加上一个隐藏的View,那样实在是太麻烦了.在网上看博客的时候突然看到这个属性真的很有用! 直接上关键属性: 设置ListView或GridView的android:clipToPadding = true, 然后通过paddingTop和paddingBottom设置距离就好了. 博客原文: http://www.cnblogs.com/xitang/p/3606578.htm

在#AOS开发平台# 新增了【首选项】功能模块

在#AOS开发平台# 新增了[首选项]功能模块.缺省包含:我的个人资料维护.我的偏好设置.系统安全选项.自定义菜单.我的操作日志等功能,并提供了扩展点.在二次开发时候可以通过新增设置项按钮增加业务系统所需的和当前登录操作员有关的新开发的设置页面.

windows live writer首行缩进问题的解决

使用live writer写博客的确方便,但有个简单的问题,我始终无法解决,就是发布的博客老是无法首行缩进,试过好多方法,都有问题: 直接加全角空格.上传时就给过滤掉了. 修改defaultcss,结果只是本地改了,传上去一样. 用text template插件(参考),传上去倒是好了.但如果要再次编辑修改,打开后又还原成顶格了. 最终解决方案: 在博客园的后台设置中,增加一个样式即可: #cnblogs_post_body p{text-indent:24px;} --就这么简单! windo

Python程序的首行

>问题 >>在一些python程序中的首行往往能够看见下面这两行语句中的一句 >>>#!/usr/bin/Python >>>#!/usr/bin/env python >>为什么呢??? >原因 脚本语言的第一行,目的就是指出,你想要你的这个文件中的代码用什么可执行程序去运行它,就这么简单 >区别 >>#!/usr/bin/Python是告诉操作系统执行这个脚本的时候,调用/usr/bin下的python解释器 &