浏览器浏览带有iframe页面的时候如何取消浏览器的滚动条
style="overflow:hidden"
这个好象不行

解决方案 »

  1.   

    是浏览器的滚动条不是框架的
      我用width=100%滚动条没了但是他滚动条显示的位置还在
      

  2.   

    这在IE下是可以实现的,其他浏览器不清楚
    有一套CSS来定义滚动条的各种样式,很容易在网上找到就不贴了
      

  3.   

    取消iframe的,还是body的???
      

  4.   

    body的
      滚动条去掉了
         就是显示滚动条的哪个位置还在
      

  5.   

    <body style="table-layout: auto; padding-right: 0px; padding-left: 0px; font-size: 12px; left: 0px; visibility: visible; padding-bottom: 0px; margin: 0px; vertical-align: top; clip: rect(0px 0px 0px 0px); cursor: hand; direction: ltr; text-indent: 5px; padding-top: 0px; position: relative; top: 0px; border-collapse: collapse; text-align: left; text-decoration: none">
        <form id="form1" runat="server">
        <div style="clip: rect(0px 0px 0px 0px)">
            <table  id="m" style="width: 100%; clip: rect(0px 0px 0px 0px);">
                <tr>
                    <td align="left" id="c" rowspan="3" valign="top" style="width: 74px">
                    <iframe src="left.aspx" id="a" name="_left" scrolling="no" width=140 height=600px frameborder=0 onclick="return a_onclick()" style="width: 140px" ></iframe>
                    </td>
                    <td id="d" onmouseup="document.getElementById('c').style.display=document.getElementById('c').style.display=='none'?'':'none'" align="left" rowspan="3" style="font-size: 12px; color: #ffffff; background-color: #333333; width: 10px;"
                        valign="top">
                        &lt;</td>
                    <td id="e" rowspan="3" style="height: 550px; width: 100%;" valign="top" align="left">
                    <iframe id="b" name="_right" src="rightnet.aspx" scrolling="YES" frameborder="0" style="width: 100%; height: 600px; padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; clip: rect(0px 0px 0px 0px); padding-top: 0px;"></iframe>
                    </td>
                </tr>
            </table>
        
        </div>
        </form>
    </body>
      

  6.   

    我想你是要取消rightnet.aspx所在的id=b的iframe中的滚动条吧解决方法很简单:你在rightnet.aspx页面中加上一个样式:
    <style>
    html{
      overflow-x: hidden; overflow-y: hidden; 

    </style> 这样就取消了样式表...包括所在的位置
      

  7.   

    当然,以上的方法把那个aspx页面的横竖滚动条都去掉了,如果你有时候需要的话,也可以把hidden改成auto,<style>
    html{
      overflow-x: auto; overflow-y: auto; 

    </style>
      

  8.   

    style="overflow:hidden" 这个是放在你的欠套html页面的 body里