我在aspx页面中有2个iframe,在iframe中有一个iframe我正在加载一个新的aspx页面,并且我有我的图库图像。我已经插入了pirobox弹出插件来加载每个图像弹出。我的问题是弹出窗口正在加载iframe本身,我希望弹出窗口覆盖整个屏幕,以便可以在不滚动iframe的情况下查看更大的图像以便整体查看。请帮我解决这个问题。我是否需要在Javascript或锚标签本身的某些位置进行更改。
这是我的主页:
<html>
<head>
<title></title>
</head>
<body>
<iframe src="C:\Users\guruprasadr\Downloads\pirobox_extended\demo.html" style="margin-left:50px" height="600px" width="700px"></iframe>
</body>
</html>
这是demo.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pirobox Extended</title>
<link href="css_pirobox/style_1/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/css.css"/>
<link rel="stylesheet" type="text/css" href="content/css/default.css"/>
<link rel="stylesheet" type="text/css" href="css/sansation/stylesheet.css"/>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.2.custom.min.js"></script>
<script type="text/javascript" src="js/pirobox_extended.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$().piroBox_ext({
piro_speed : 700,
bg_alpha : 0.5,
piro_scroll : true // pirobox always positioned at the center of the page
});
});
</script>
</head>
<body>
<div class="demo">
<ul>
<li>
<a href="img/26.jpg" rel="gallery" class="pirobox_gall" title="Curious kitten.">
<img src="img/26s.jpg" />
</a>
</li>
<li><a href="Images/300vsSA-Getty.jpg" rel="gallery" class="pirobox_gall" title="Lights"><img src="img/27s.jpg" /></a></li>
<li><a href="img/29.jpg" rel="gallery" class="pirobox_gall" title="Sun salutation."><img src="img/29s.jpg" /></a></li>
<li><a href="img/30.jpg" rel="gallery" class="pirobox_gall" title="Bonfire"><img src="img/30s.jpg" /></a></li>
</ul>
</div>
</body>
</html>
现在我很清楚......
答案 0 :(得分:1)
如果你把它包括在框架中呢?
<!-- #Include virtual="C:\Users\guruprasadr\Downloads\pirobox_extended\demo.html" -->
如果您这样做,请在<body>
代码和Js / CSS <link>
您是否尝试使用parent.window
在iframe和主文档之间进行互动?
另见:Access elements of parent window from iframe