谁玩过html A里嵌html B,且点内嵌html B里的链接a1,整个页面html A跳转到该页a1

heavensonic 2006-05-17 03:26:14
如题
...全文
221 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
heavensonic 2006-05-19
  • 打赏
  • 举报
回复
自己也贴点,从别处发现的:
1.IFrame引入,看看下面的代码
--------------------------------------------------------------------------------
<iframe name="content_frame" marginwidth=0 marginheight=0 width=100% height=30 src="import.htm" frameborder=0></iframe>
--------------------------------------------------------------------------------
2.<object>方式
--------------------------------------------------------------------------------
<object style="border:0px" type="text/x-scriptlet" data="import.htm" width=100% height=30></object>
--------------------------------------------------------------------------------

3.Behavior的download方式

--------------------------------------------------------------------------------
<span id=showImport></span>
<IE:Download ID="oDownload" STYLE="behavior:url(#default#download)" />
<script>
function onDownloadDone(downDate){
showImport.innerHTML=downDate
}
oDownload.startDownload('import.htm',onDownloadDone)
</script>

前两种用了下,大小得固定。。。
  • 打赏
  • 举报
回复
如果不能改B的页面呢?如何在A中来设置让B中的链接在A中打开?
李睿_Lee 2006-05-18
  • 打赏
  • 举报
回复
个人感觉用Html好点
大猫钓鱼 2006-05-18
  • 打赏
  • 举报
回复
前两位用的是JS,后两位用的html。都可以解决问题。
zeroleonhart 2006-05-17
  • 打赏
  • 举报
回复
target="_parent"
life360 2006-05-17
  • 打赏
  • 举报
回复
直接 <a href="#" target="_top">rrr </a>
cqq 2006-05-17
  • 打赏
  • 举报
回复
或者 top.location.href ="url"
sanshisong 2006-05-17
  • 打赏
  • 举报
回复
parent.location.href ="url"

就这个玩意

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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