Frame和Iframe橫向捲軸的解決方案

來源:互聯網
上載者:User

在網上找了相關資料後,很多人都是把“style="overflow-x:hidden" ",但我用了這種方法,還是不行,
最後把頁面上的<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
在<body>中加style="overflow-x:hidden" 就可以了,
我的架構是這樣的的
<frameset rows="60,2,*" frameborder="no" border="0" framespacing="0">
  <frame src="View_Top.aspx" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
  <frame src="View_Mid.htm" name="midFrame" scrolling="No" noresize="noresize" id="midFrame" title="midFrame" />
  <frame src="View_Content.aspx" name="mainFrame" id="mainFrame" width="100%" title="mainFrame" />
</frameset>

View_Content.aspx的架構:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="View_Content.aspx.cs" Inherits="Member_Resume_View_Content" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>無標題頁</title>
</head>
<body style='overflow:scroll;overflow-x:hidden'>
    <form id="form1" runat="server">
    <div>
        <%=rtn %>       
    </div>
    </form>
</body>
</html>

反正用了這種方法,我的問題解決了,在此做個說明,如園中遇到同樣的問題,可以做個參考

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.