日期:2014-05-17 浏览次数:20829 次
#load{padding:10px;
width:600px;height:300px;
display:block;
position: absolute;
top:50%;
left:50%;
margin-left:-300px;
margin-top:-150px;}
</style>
<!--index.php-->
<script type="text/javascript" src="javascript/jquery_1.4.2.js"></script>
<div id="ifr">
<iframe id="iframe" name="showMap" width="100%" height="600" src="map.php"></iframe>
------解决方案--------------------
你们要是真心的帮助LZ,那么就请贴出可供测试的代码
否则,我就要将此贴移动了
------解决方案--------------------
好吧,我承认是着急了点,还是把上面的帖子移除吧,这是个可测试的:
在iframe的父级页面和元素页面必须都连接上<script type="text/javascript" src="jquery_1.4.2.js"></script> 才管用
<!--index.html-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript" src="jquery_1.4.2.js"></script>
</head>
<body>
<div id="show3dmap" style="border:solid 1px">此div的宽高与body相当
<div id="ifr">
<iframe id="iframe" name="show" width="100%" height="600" src="cont.html"></iframe>
</div>
</div>
</body>
</html>
<!--cont.html-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript" src="jquery_1.4.2.js"></script>
</head>
<body>
<div>这是子页面
<input type="button" id=&q