不需要动态的,固定长度就行
我用的是谷歌浏览器
希望各位大大帮个忙,很急,谢谢了

解决方案 »

  1.   

    如果你有设置table的宽度,就需要选设置table的宽度。如果有设置tr的宽度就要设置table的宽度
    最后设置td宽度
    $("table").width(200).find("tr").width(200).find("td").width(20);
      

  2.   


    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); 应该是用法有问题 .
      

  3.   

    <table border="0" cellspacing="0" cellpadding="0"><thead style="display:table-header-group"></thead>
    <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');">&nbsp;&nbsp;&nbsp;<a href="javascript:Report.handleLink(&quot;/whoviemis/sysmng.initUpdate.do&#63;subSys&#61;whoviems&amp;updateID&#61;updIOconfirmXSCKMB&amp;col_xtid&#61;OUT20100806001&quot;,&quot;&quot;,&quot;&quot;)" onmouseover="javascript:window.status='修改出库清关资料(销售出库免表)';return true;">修改出库清关资料(销售出库免表)</a>&nbsp;&nbsp;&nbsp;</td>
    </tr>
    </table>
    </div></td></tr></table></div></td></tr></table></td>
    <td class="repList">OUT20100806001</td>
    <td class="repList">&nbsp;</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>
      

  4.   

    页面我不能修改,只能添加JS,我用的是GOOGLE浏览器,很多办法都没用
      

  5.   


    $('table td').each(function(){
    $(this).css('width','500px');
    });
      

  6.   

    $("repList_5346").find("tr").eq(4).width(val)
    $("repList_5346").find("tr").eq(11).width(val)
    根据你的提示一个在5列,一个在第12列,你这样设置试试!VAL换成具体的值!