不需要动态的,固定长度就行
我用的是谷歌浏览器
希望各位大大帮个忙,很急,谢谢了
我用的是谷歌浏览器
希望各位大大帮个忙,很急,谢谢了
解决方案 »
- 关于js符号的问题
- FusionChart柱状图总是出不来,各位给我看看我的JSon数据格式有什么问题?
- 注入js,起调试作用,有没有?
- 确定 取消按钮无效,请帮忙看看
- 如何实现图片随浏览器滑动
- 新手请教 javascript 聚焦时光标自动到最左
- 高手帮帮忙<asp:TextBox id="tbSearchFileName" tabIndex="1" runat="server" MaxLength="100" onkeydown="" ></asp:TextBox>
- 怎么样判断 "2" 是否在特定字符串中 (字符串可以如下格式:"2,3,5" 或者 "2" 或者 “”为空)
- loadPicture问题,很值得研究,高手过来
- 关于在父页面 获取iframe子页面的元素 JS
- 为什么光标离开后下拉列表那么快就隐藏的?
- parentNode问题
最后设置td宽度
$("table").width(200).find("tr").width(200).find("td").width(20);
width(val)
为每个匹配的元素设置CSS宽度(width)属性的值。
如果没有明确指定单位(如:em或%),使用px。--------------------------------------------------------------------------------Set the CSS width of every matched element.
If no explicit unit was specified (like 'em' or '%') then "px" is concatenated to the value.
返回值
jQuery参数
val (String, Number) : 设定 CSS 'width' 的属性值示例
将所有段落的宽设为 20: jQuery 代码:$("p").width(20); 应该是用法有问题 .
<tr>
<td valign="top">
<table id="repList_5346" class="repList" sort="1" border="0" cellspacing="0" cellpadding="0">
<thead class="repList">
<tr class="repListHd">
<td class="repListHdNoPrt">操作</td>
<td sorttype="String" style="cursor:pointer" class="repListHdTop">系统流水号</td>
<td sorttype="String" style="cursor:pointer" class="repListHdTop">备注</td>
<td sorttype="String" style="cursor:pointer" class="repListHdTop">贸易性质</td>
<td sorttype="String" style="width:200" style="cursor:pointer" class="repListHdTop">dn</td>//这一列非常长
<td sorttype="String" style="cursor:pointer" class="repListHdTop">inv</td>
<td sorttype="String" style="cursor:pointer" class="repListHdTop">货物流向</td>
<td sorttype="String" style="cursor:pointer" class="repListHdTop">BD日期</td>
<td sorttype="Date" style="cursor:pointer" class="repListHdTop">创建日期</td>
<td sorttype="String" style="cursor:pointer" class="repListHdTop">编号</td>
<td sorttype="Number" style="cursor:pointer" class="repListHdTop">出库分类编号</td>
<td sorttype="String" style="cursor:pointer" class="repListHdTop">PN</td>//这一列非常长
</tr>
</thead>
<tbody class="repList">
<tr type="data" class="repList1" onmouseover="javascript:Report.listMouseOver(this);" onmouseout="javascript:Report.listMouseOut(this);">
<td align="center" class="repListNoPrt">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<input type="hidden" id="popMenuStat_0" value="1">
<td align="right" nowrap="true">
<span style="text-align:center" onmouseover="PubUtil.showHideLayers('repUnitFunc_0','','show');Report.myin('popMenuStat_0');" style="cursor:pointer" onmouseout="Report.myout('popMenuStat_0','repUnitFunc_0');"><img src="/whoviemis/charisma/images/public/iPopUpMenu.gif" border="0" vspace="3"></span>
</td>
<td width="0" align="left" valign="top">
<div id="repUnitFunc_0" onmouseover="PubUtil.showHideLayers('repUnitFunc_0','','show');" style="z-index: 1; VISIBILITY: hidden; WIDTH: 60px; POSITION: absolute; HEIGHT: 56px" onmouseout="PubUtil.showHideLayers('repUnitFunc_0','','hide');">
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td onmouseover="Report.myin('popMenuStat_0')" onmouseout="Report.myout('popMenuStat_0','repUnitFunc_0');">
<div>
<table class="repPopMenu" cellspacing="1" cellpadding="0" width="100%" border="0">
<tr class="repPopMenu">
<td class="repPopMenu" nowrap="true" onmouseover="Report.myin('popMenuStat_0')" onmouseout="Report.myout('popMenuStat_0','repUnitFunc_0');"> <a href="javascript:Report.handleLink("/whoviemis/sysmng.initUpdate.do?subSys=whoviems&updateID=updIOconfirmXSCKMB&col_xtid=OUT20100806001","","")" onmouseover="javascript:window.status='修改出库清关资料(销售出库免表)';return true;">修改出库清关资料(销售出库免表)</a> </td>
</tr>
</table>
</div></td></tr></table></div></td></tr></table></td>
<td class="repList">OUT20100806001</td>
<td class="repList"> </td>
<td style="text-align:right" class="repList">销售出库(免表)</td>
<td class="repList">41453428/41453673/41458223</td>
<td class="repList">93296074/93296725/93297108</td>
<td style="text-align:center" class="repList">武汉新芯</td>
$('table td').each(function(){
$(this).css('width','500px');
});
$("repList_5346").find("tr").eq(11).width(val)
根据你的提示一个在5列,一个在第12列,你这样设置试试!VAL换成具体的值!