gpt4 book ai didi

html - HTML 中的目标值 blank,self,parent,top 有什么区别?

转载 作者:行者123 更新时间:2023-12-05 09:22:00 27 4
gpt4 key购买 nike

标签target属性中的target value blank,self,parent,top,framename有什么区别?我知道空白比新标签页中的链接更开放self 是在当前选项卡中打开的链接但是我看不懂parent和top

最佳答案

来自规范:

_blank

The user agent should load the designated document in a new, unnamed window.

_self

The user agent should load the document in the same frame as the element that refers to this target.

_parent

The user agent should load the document into the immediate FRAMESET parent of the current frame. This value is equivalent to _self if the current frame has no parent.

_top

The user agent should load the document into the full, original window (thus canceling all other frames). This value is equivalent to _self if the current frame has no parent.

http://www.w3.org/TR/html4/types.html#type-frame-target

关于html - HTML 中的目标值 blank,self,parent,top 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29386366/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com