我想将 130 分配给所有行的第一个和第一个 td,将 100 分配给所有行的第二个和第二个 td,将 40 分配给所有行的第三个和第三个 td,将 120 分配给所有行的第四个和第四个 td,将 230 分配给到所有行的第五个和第五个 td。
我的第一个和第一个 td 代码是
$('#tiptip_content table th, td').eq(0).css('width','130px');
$('#tiptip_content table th, td').eq(1).css('width','100px');
我的动态 HTML 代码是
<div style="display: none; margin: 624px 0px 0px 494px;" id="tiptip_holder" class="tip_top">
<div id="tiptip_arrow" style="margin-left: 313px; margin-top: 71px;">
<div id="tiptip_arrow_inner">
</div>
</div>
<div id="tiptip_content">
<div style="width: 100%; height: 25px; overflow: hidden; position: relative;" class="xhdr">
<img style="display: none; position: absolute;" src="https://www.lifemark.ca/contents/dhx/grid/imgs/sort_desc.gif">
<table cellspacing="0" cellpadding="0" style="width: 100%; table-layout: fixed; margin-right: 20px; padding-right: 20px;" class="hdr">
<tbody>
<tr style="height: auto;">
<th style="height: 0px;">
</th>
<th style="height: 0px;">
</th>
<th style="height: 0px;">
</th>
<th style="height: 0px;">
</th>
<th style="height: 0px;">
</th>
</tr>
<tr>
<td style="color: black; font-size: 9px; vertical-align: top; font-weight: bold;">
<div class="hdrcell">
Ax Name
</div>
</td>
<td style="color: black; font-size: 9px; vertical-align: top; font-weight: bold;">
<div class="hdrcell">
Claimant
</div>
</td>
<td style="color: black; font-size: 9px; vertical-align: top; font-weight: bold;">
<div class="hdrcell">
Status
</div>
</td>
<td style="color: black; font-size: 9px; vertical-align: top; font-weight: bold;">
<div class="hdrcell">
Coordination Times
</div>
</td>
<td style="color: black; font-size: 9px; vertical-align: top; font-weight: bold;">
<div class="hdrcell">
Ax Address
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="width: 100%; overflow-x: auto; overflow-y: hidden;" class="objbox">
<table cellspacing="0" cellpadding="0" style="width: 100%; table-layout: fixed;" class="obj">
<tbody>
<tr style="height: auto;">
<th style="height: 0px;">
</th>
<th style="height: 0px;">
</th>
<th style="height: 0px;">
</th>
<th style="height: 0px;">
</th>
<th style="height: 0px;">
</th>
</tr>
<tr class=" ev_dhx_skyblue">
<td valign="middle" align="left">
Chiropractic Assessment
</td>
<td valign="middle" align="left">
Test David
</td>
<td valign="middle" align="left">
Booked
</td>
<td valign="middle" align="left">
07:30 PM - 08:30 PM;08:30 PM - 09:30 PM;09:30 PM - 10:30 PM
</td>
<td valign="middle" align="left">
2 Wellington Street West, Brampton, Ontario, L6Y 4R2
</td>
</tr>
</tbody>
</table>
</div>
</div>