首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CSS >

iframe大小的有关问题

2014-01-17 
iframe大小的问题我在网页中嵌套了另一个页面(A),A页面单独浏览时一起正常。但嵌入网页后不管怎么设置A的宽

iframe大小的问题
我在网页中嵌套了另一个页面(A),A页面单独浏览时一起正常。但嵌入网页后不管怎么设置A的宽度总是很短。如图
iframe大小的有关问题
嵌入代码如下:

</div>
<div id="c0" class="content"><?php
if('总经理'==$_SESSION['position']&&'1'==$_SESSION['access_right']){
//readfile("a_sales_brief.php");
?>
<iframe src="http://localhost:80/cognos8/cgi-bin/cognos.cgi?b_action=cognosViewer&ui.action=run&ui.object=%2fcontent%2fpackage%5b%40name%3d%27%e6%b5%8b%e8%af%95%e9%94%80%e5%94%ae%e6%95%b0%e6%8d%ae%e5%8c%85%27%5d%2freport%5b%40name%3d%27levelA1%27%5d&ui.name=levelA1&run.outputFormat=&run.prompt=true&cv.toolbar=false&cv.header=false" frameborder='0' width=1100px height=900px align="left"></iframe>
<?php

包裹iframe的div的css如下:
.content{
width:1100px;
height:900px;
display:none;
padding:5px;
overflow-y:auto;
background-color: #FF0000;
overflow: visible;
position: relative;
}

请大神指教怎么让iframe宽度变大
[解决办法]
iframe的宽度改为100%试试。

热点排行