想要保留右边的滚动条,去掉下面那个滚动条有没有什么方法啊 <td><iframe id="iframe1" src="Showneiron.aspx" style="font-size:12px; color:Red; text-align:left; width: 775px; height: 207px;" frameborder="no" marginheight="0" marginwidth="0" scrolling="no"></iframe></td>
<body style="overflow-x:hidden;overflow-y:auto;">
<style>
html { overflow-x:hidden; }
</style>
包含iframe的页面不作调整,iframe的src属性指向的页面要在<head></head>之间加:
<style>
html { overflow-x:hidden; }
</style>
这样就可以了
<head runat="server">
<title>无标题页</title>
<style type="text/css">
html { overflow-x:hidden; }
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
将Showneiron.aspx页面中加上 <body style="overflow-x:hidden;overflow-y:auto">