-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[html] 第5天 简述超链接target属性的取值和作用 #13
Comments
_self: 在当前窗口打开页面 |
_top 在iframe或者frameset里用的比较多 |
|
|
补充一个,target值也可以是除去以上回答中的几个标准值之外的任意字符,这样的话达到的效果就是一半的_blank:即如果当前浏览器还没有打开这个链接,则会弹出新窗口打开此链接;如果已经打开了这个链接,则不会再重复弹出第二个窗口,而是刷新已打开的窗口链接。 |
1._self 在自身所处的框架(包括iframe)中打开 |
|
|
标签的 target 属性规定在何处打开链接文档。 语法: 值 | 描述 _blank | 在新窗口中打开被链接文档。 |
_blank |
a 标签的 target 属性一共有四个值。
|
target:_self 在当前网页上打开网页 |
target属性此属性指定激活链接时要在其中打开文档的浏览上下文的名称(例如,浏览器选项卡或(X)HTML iframe或object元素)
|
答:该属性规定在何处打开链接文档。 |
经过查阅和实践: |
属性值 _black:点击一次打开一个新窗口 _new:始终在同一个新窗口中打开 _self:默认,在当前窗口打开 _parent:在父级窗口打开 _top:在当前的整个浏览器中打开所链接文档,即在顶级窗口打开 framename:在指定的框架中打开被链接文档 |
|
✂【回答】
🖊【便签】 |
target属性 定义被链接的文档在何处显示
|
|
framename和任意字符是一回事儿
|
|
_blank:在新浏览器窗口(新标签)中打开链接文件 |
** ** ** ** 需要注意的是,使用 |
|
指定打开链接的方式 |
第5天 简述超链接target属性的取值和作用
The text was updated successfully, but these errors were encountered: