想要保留右边的滚动条,去掉下面那个滚动条有没有什么方法啊                <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>

解决方案 »

  1.   

    Showneiron.aspx中
    <body style="overflow-x:hidden;overflow-y:auto;">
      

  2.   

    Showneiron.aspx中加入:
         <style>
            html { overflow-x:hidden; }
        </style>
      

  3.   

    好的,我试试  那ifame这边需要做哪些吗
      

  4.   

    我的测试过了,可以
    包含iframe的页面不作调整,iframe的src属性指向的页面要在<head></head>之间加:
        <style> 
            html { overflow-x:hidden; } 
        </style>
    这样就可以了
      

  5.   

    <body style="text-align: left;overflow: scroll;overflow-y: auto; overflow-x: hidden;">使劲的在报不是CSS的有效属性
      

  6.   

    <body style="text-align: left;overflow: scroll;overflow-y: auto; overflow-x: hidden;">使劲的在报不是CSS的有效属性
      

  7.   

    晕,没说要在body的style属性里面加东西呀<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
    <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>
      

  8.   

    <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="yes"> </iframe> 
    将Showneiron.aspx页面中加上 <body style="overflow-x:hidden;overflow-y:auto"> 
      

  9.   

    <body style="overflow-x:hidden;">