给td加右边滚动条css怎么写

给td加右边滚动条css怎么写,第1张

td不能直接加滚动条,放个div,给div加滚动条

<td><div style="width:100%height:100overflow-x:hiddenoverflow-y:scroll"></td>

在设为overflow:scroll的div里面再加一层盒子

<table id="tableList" style="width:98%" border="0" cellpadding="0" cellspacing="0" class="list_tab" style="table-layout: fixed">

<td style="word-wrap:break-word" title="<s:property value='#dir.antugraph'/>">

<div style="overflow:scroll width:600px height:200px">

<div style="height:500px">

长<br />

文<br />

本<br />

文本本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本

</div>

</div>

 </td>

</table>


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/bake/11848698.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-19
下一篇 2023-05-19

发表评论

登录后才能评论

评论列表(0条)

保存