search
HomeWeb Front-endHTML Tutorialiframe中的内容超出了边框_html/css_WEB-ITnose

本帖最后由 xiongdawang 于 2012-11-01 14:21:26 编辑

iframe标签我定义的CSS padding: 10px;
把调用的页面显示在里面,其他页面都没有问题,
就是highcharts图的页面,当有竖滚动条时,上下滚动highcharts图的页面会超出框外?



回复讨论(解决方案)

overflow:hidden

overflow:hidden

我用了的,就是不起作用!

引用 1 楼  的回复:
overflow:hidden


我用了的,就是不起作用!
那你高度宽度设置了没? 不然你就把代码拿出来 让各位大神看看 我个人感觉高度宽度overflow都设置了应该没问题

引用 2 楼 的回复:

引用 1 楼 的回复:
overflow:hidden


我用了的,就是不起作用!

那你高度宽度设置了没? 不然你就把代码拿出来 让各位大神看看 我个人感觉高度宽度overflow都设置了应该没问题

被调用的页面高度是固定的

我用的是jquery ui 布局的,在IE8下没有问题,在IE7 360下只有调用highcharts图的页面,
出现这个问题

这是框架部分CODE:

<link rel="stylesheet" type="text/css" href="css/jquery.css"><script type="text/javascript" src="js/jquery.js"></script><script type="text/javascript" src="js/layout-ui-datepicker-min.js"></script><script type="text/javascript" src="js/left-core-min.js"></script><script language="javascript">function UnLoadEvent(){	window.location.href='exit.php';}</script></head><body id="" onunload="">  <div class="ui-layout-north header ui-layout-pane ui-layout-pane-north broke-endless-pages">    <div class="top"></div>    <ul>      <li><a title="退出系统" href="exit.php"  hidefocus="ture"><img  src="/static/imghwm/default1.png"  data-src="./images/c5.png"  class="lazy"  / alt="iframe中的内容超出了边框_html/css_WEB-ITnose" ></a></li>      <li><a title="系统管理" href="frame_system.php"  hidefocus="ture"><img  src="/static/imghwm/default1.png"  data-src="./images/c4.png"  class="lazy"  / alt="iframe中的内容超出了边框_html/css_WEB-ITnose" ></a></li>      <li><a title="考勤管理" href="frame_attendance.php"  hidefocus="ture"><img  src="/static/imghwm/default1.png"  data-src="./images/c3.png"  class="lazy"  / alt="iframe中的内容超出了边框_html/css_WEB-ITnose" ></a></li>      <li><a title="信息导入" href="#" hidefocus="ture"><img  src="/static/imghwm/default1.png"  data-src="./images/c2.png"  class="lazy"  / alt="iframe中的内容超出了边框_html/css_WEB-ITnose" ></a></li>      <li><a title="信息查询" href="frame.php"  hidefocus="ture"><img  src="/static/imghwm/default1.png"  data-src="./images/c1.png"  class="lazy"  / alt="iframe中的内容超出了边框_html/css_WEB-ITnose" ></a></li>    </ul>  </div>  <iframe class="ui-layout-west ui-layout-pane ui-layout-pane-west" src="frame_left_inquiry.php" name="leftFrame" id="leftFrame" frameborder="0" scrolling="no"></iframe>  <iframe src="virtualAccount/ID_Search.php" name="mainFrame" id="mainFrame" class="ui-layout-center ui-layout-pane ui-layout-pane-center" frameborder="0" scrolling="yes"   style="max-width:90%">  </iframe>  <div class="ui-layout-south ui-layout-pane ui-layout-pane-south">  <span></span>  </div></body></html>


这是被调用的页面code:
<!DOCTYPE HTML><html>	<head>		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">		<title>Highcharts Example</title>		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>		<script type="text/javascript">$(function () {    var chart;    $(document).ready(function() {        chart = new Highcharts.Chart({                        chart: {                renderTo: 'container'            },                        title: {                text: 'Logarithmic axis demo'            },                        xAxis: {                tickInterval: 1            },                        yAxis: {                type: 'logarithmic',                minorTickInterval: 0.1            },                        tooltip: {                headerFormat: '<b>{series.name}</b><br />',                pointFormat: 'x = {point.x}, y = {point.y}'            },                        series: [{                            data: [1, 2, 4, 8, 16, 32, 64, 128, 256, 512],                pointStart: 1            }]        });    });    });		</script>	</head>	<body><script src="../../js/highcharts.js"></script><script src="../../js/modules/exporting.js"></script><div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>	</body></html>

我用的是jquery ui 布局的,在IE8下没有问题,在IE7 360下只有调用highcharts图的页面,
出现这个问题

这是框架部分CODE:
PHP code

<script></script> 我说的宽度高度是你在iframe的style里面加 你加了试试 如果不行那我也不懂了 - -期待哪个大神帮你解决吧

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What is the difference between an HTML tag and an HTML attribute?What is the difference between an HTML tag and an HTML attribute?May 14, 2025 am 12:01 AM

HTMLtagsdefinethestructureofawebpage,whileattributesaddfunctionalityanddetails.1)Tagslike,,andoutlinethecontent'splacement.2)Attributessuchassrc,class,andstyleenhancetagsbyspecifyingimagesources,styling,andmore,improvingfunctionalityandappearance.

The Future of HTML: Evolution and TrendsThe Future of HTML: Evolution and TrendsMay 13, 2025 am 12:01 AM

The future of HTML will develop in a more semantic, functional and modular direction. 1) Semanticization will make the tag describe the content more clearly, improving SEO and barrier-free access. 2) Functionalization will introduce new elements and attributes to meet user needs. 3) Modularity will support component development and improve code reusability.

Why are HTML attributes important for web development?Why are HTML attributes important for web development?May 12, 2025 am 12:01 AM

HTMLattributesarecrucialinwebdevelopmentforcontrollingbehavior,appearance,andfunctionality.Theyenhanceinteractivity,accessibility,andSEO.Forexample,thesrcattributeintagsimpactsSEO,whileonclickintagsaddsinteractivity.Touseattributeseffectively:1)Usese

What is the purpose of the alt attribute? Why is it important?What is the purpose of the alt attribute? Why is it important?May 11, 2025 am 12:01 AM

The alt attribute is an important part of the tag in HTML and is used to provide alternative text for images. 1. When the image cannot be loaded, the text in the alt attribute will be displayed to improve the user experience. 2. Screen readers use the alt attribute to help visually impaired users understand the content of the picture. 3. Search engines index text in the alt attribute to improve the SEO ranking of web pages.

HTML, CSS, and JavaScript: Examples and Practical ApplicationsHTML, CSS, and JavaScript: Examples and Practical ApplicationsMay 09, 2025 am 12:01 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML is used to build web page structure; 2. CSS is used to beautify the appearance of web pages; 3. JavaScript is used to achieve dynamic interaction. Through tags, styles and scripts, these three together build the core functions of modern web pages.

How do you set the lang attribute on the  tag? Why is this important?How do you set the lang attribute on the tag? Why is this important?May 08, 2025 am 12:03 AM

Setting the lang attributes of a tag is a key step in optimizing web accessibility and SEO. 1) Set the lang attribute in the tag, such as. 2) In multilingual content, set lang attributes for different language parts, such as. 3) Use language codes that comply with ISO639-1 standards, such as "en", "fr", "zh", etc. Correctly setting the lang attribute can improve the accessibility of web pages and search engine rankings.

What is the purpose of HTML attributes?What is the purpose of HTML attributes?May 07, 2025 am 12:01 AM

HTMLattributesareessentialforenhancingwebelements'functionalityandappearance.Theyaddinformationtodefinebehavior,appearance,andinteraction,makingwebsitesinteractive,responsive,andvisuallyappealing.Attributeslikesrc,href,class,type,anddisabledtransform

How do you create a list in HTML?How do you create a list in HTML?May 06, 2025 am 12:01 AM

TocreatealistinHTML,useforunorderedlistsandfororderedlists:1)Forunorderedlists,wrapitemsinanduseforeachitem,renderingasabulletedlist.2)Fororderedlists,useandfornumberedlists,customizablewiththetypeattributefordifferentnumberingstyles.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function