新开100分,见 http://expert.csdn.net/Expert/topic/1447/1447612.xml?temp=.3277552

tigerexp 2003-02-20 02:38:20
谢了
...全文
39 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
flyycyu 2003-02-25
  • 打赏
  • 举报
回复
up
wsj 2003-02-20
  • 打赏
  • 举报
回复
<iframe id=theFrame src="about:content_here"></iframe>
<button onclick="with(document.all.theFrame){height=offsetHeight+10;width=offsetWidth+10;}">+</button>
春哥视角 2003-02-20
  • 打赏
  • 举报
回复
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#3300CC">


width:<input type=text name=w value=90>
height:<input type=text name=h value=90>

<IFRAME frameBorder=1 name=heads src="about:blank" style="HEIGHT: expression(h.value); LEFT: 220px; POSITION: absolute; TOP: 200px; WIDTH: expression(w.value)">
</IFRAME>
</body>
</html>
meizz 2003-02-20
  • 打赏
  • 举报
回复
关于iframe的动态大小变化的问题 放在被iframe的页里.
<script language="javascript"><!--
function window.onload()
{
if (self.location != top.location)
{
parent.document.all(self.name).height = document.body.scrollHeight + 20;
parent.document.all(self.name).width = document.body.scrollWidth + 20;
}
}
// --></script>

87,996

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧