gpt4 book ai didi

html - 当我只为正文设置滚动时,标题没有与正文表对齐。还为 body 设置了滚动但它被禁用

转载 作者:行者123 更新时间:2023-11-28 05:49:21 25 4
gpt4 key购买 nike

当我只为正文设置滚动时,标题没有与正文表对齐。还为正文设置了滚动,但它被禁用了。

这是html代码:

            </td>
</tr>
<tr class="mwp_Row1">
<td colspan="4" align="right">
<input type="button" name="Close" value="Close" onclick="javascript:window.close()" class="button">
</td>
</tr>
</table>
<div style="overflow-y: hidden; overflow-x: hidden;">
<table width="100%" border="0" cellspacing="1" cellpadding="1">

<tr class="mwp_titleBand">
<td class=rotate align="center"><div align="center">Service Date</div></td>
<td class=rotate align="center"><div align="center">New/Old Data</td>
<td class=rotate align="center"><div align="center">Accom Code</div></td>
<td class=rotate align="center"><div align="center">Room Code</div></td>
<td class=rotate align="center"><div align="center">Rate Code</div></td>
<td class=rotate align="center"><div align="center">Block Inv Count</div></td>
<td class=rotate align="center"><div align="center">Block Alot Count</div></td>
<td class=rotate align="center"><div align="center">Book Count</div></td>
<td class=rotate align="center"><div align="center">Hold Count</div></td>
<td class=rotate align="center"><div align="center">BlockInv Wash Factor</div></td>
<td class=rotate align="center"><div align="center">Bk Blk Impact Count</div></td>
<td class=rotate align="center"><div align="center">PrntBrw Impact Count</div></td>
<td class=rotate align="center"><div align="center">System Created</div></td>
<td class=rotate align="center"><div align="center">Modification Type</div></td>
</tr>
</table>
</div>
<div style="overflow-y: scroll;">
<table width="100%" border="0" cellspacing="1" cellpadding="1">



<tr class="mwp_Row1" align="center">
<td align="center">04-AUG-16</td>
<td align="center"><strong>New Data</strong></td>
<td align="center">1C</td>
<td align="center">CQ</td>
<td align="center">GRP</td>
<td align="center">2</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center"></td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center"></td>
</tr>
<tr class="mwp_Row1" align="center">
<td></td>
<td align="center"><strong>Old Data</strong></td>
<td align="center">1C</td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
</tr>

<tr class="mwp_Row1" align="center">
<td align="center">05-AUG-16</td>
<td align="center"><strong>New Data</strong></td>
<td align="center">1C</td>
<td align="center">CQ</td>
<td align="center">GRP</td>
<td align="center">2</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center"></td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center"></td>
</tr>
<tr class="mwp_Row1" align="center">
<td></td>
<td align="center"><strong>Old Data</strong></td>
<td align="center">1C</td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
</tr>

<tr class="mwp_Row1" align="center">
<td align="center">06-AUG-16</td>
<td align="center"><strong>New Data</strong></td>
<td align="center">1C</td>
<td align="center">CQ</td>
<td align="center">GRP</td>
<td align="center">2</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center"></td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center"></td>
</tr>
<tr class="mwp_Row1" align="center">
<td></td>
<td align="center"><strong>Old Data</strong></td>
<td align="center">1C</td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
</tr>

<tr class="mwp_Row1" align="center">
<td align="center">07-AUG-16</td>
<td align="center"><strong>New Data</strong></td>
<td align="center">1C</td>
<td align="center">CQ</td>
<td align="center">GRP</td>
<td align="center">2</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center"></td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center"></td>
</tr>
<tr class="mwp_Row1" align="center">
<td></td>
<td align="center"><strong>Old Data</strong></td>
<td align="center">1C</td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
</tr>

<tr class="mwp_Row1" align="center">
<td align="center">08-AUG-16</td>
<td align="center"><strong>New Data</strong></td>
<td align="center">1C</td>
<td align="center">CQ</td>
<td align="center">GRP</td>
<td align="center">2</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center"></td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center"></td>
</tr>
<tr class="mwp_Row1" align="center">
<td></td>
<td align="center"><strong>Old Data</strong></td>
<td align="center">1C</td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
</tr>



</table>
</div>
</form>
</body>

</html>

下面还有 fiddle :

http://jsfiddle.net/k2zo7msg/4/

我希望标题是固定的......并且正文有滚动条我还希望标题表与正文表对齐(如果你现在看到它不是)。滚动条也不适用于正文。

最佳答案

那么,您可以使用 position: absoluteposition: relative 进行对齐:

http://jsfiddle.net/k2zo7msg/3/

关于html - 当我只为正文设置滚动时,标题没有与正文表对齐。还为 body 设置了滚动但它被禁用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37435734/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com