局部内容滚动

转载请注明来源:https://www.cnblogs.com/hookjc/

<html>//关键是这里,删除前面的的模板链接
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>局部内容滚动</title>
</head>

<body style="overflow:hidden;">
<table height="100%" width="100%" border="1">
<tr><td height="20px">标题不滚动</td></tr>
<tr><td width="100%">
<div id=divcontent style="overflow-y:auto;width:100%; height:100%;">
<table cellpadding="0" cellspacing="0" style="text-align:center; width="100%" border="1">
<tr><td>1</td><td>2</td><td>3</td></tr>//多添加一些数据就效果就出来了
</table>
</div>
</td></tr>
</table>
</body>
</html>

来源:python脚本自动迁移

posted @ 2020-06-29 11:15  jiangcheng_15  阅读(104)  评论(0编辑  收藏  举报