gpt4 book ai didi

html - html中顶部与父级的工作示例

转载 作者:行者123 更新时间:2023-11-28 02:57:52 24 4
gpt4 key购买 nike

有人可以在 html 中给我 parent 和 top 的工作示例吗?我找不到任何例子来了解这一点。理论答案无处不在。

_top:在最外层框架打开

_parent: 在父框架中打开

但是我看不到任何例子。

最佳答案

<a href="http://stackoverflow.com" target="_parent">Open in parent</a>

<a href="http://stackoverflow.com" target="_top">Open in top</a>

参见 a tag description on w3schools和可编辑 example is here .

编辑:

_top之间的区别和 _parent已在此处接受的答案中描述 Difference between _self, _top, and _parent in the anchor tag target attribute :

The _parent _top and framename tags are left a mystery to those that aren't familiar with the days of iframe site building as the trend.

关于html - html中顶部与父级的工作示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36131882/

24 4 0
文章推荐: jquery - 防止文本超出包含的
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com