target=“_parent”

 

Target Attribute

Internet Development Index

 

Defines a frame or window that a URL is displayed in. Read/write String.

Applies To

Shape

Tag Syntax

 

<v:element target="expression">

Remarks

The Target attribute is similar to the standard HTML Target attribute of anchors.

Values include:

ValueDescription
TargetNameString containing the name of the frame or window in which to load the document.
_blankSpecifies that the linked document is loaded into a new blank window. This window is not named.
_mediaSpecifies that the linked document is loaded into the Media Bar. Available in Microsoft® Internet Explorer 6 or later.
_parentSpecifies that the linked document is loaded into the immediate parent of the document containing the link.
_searchSpecifies that the linked document is loaded into the browser's search pane. Available in Microsoft Internet Explorer 5 or greater.
_selfSpecifies that the linked document is loaded into the window in which the link was clicked (the active window).
_topSpecifies that the linked document is loaded into the topmost window.

简单的说:

_blank -- 在新窗口中打开链接 
_parent -- 在父窗体中打开链接 
_self -- 在当前窗体打开链接,此为默认值 
_top -- 在当前窗体打开链接,并替换当前的整个窗体(框架页) 

 

_blank 浏览器会另开一个新窗口显示链接

_self,在同一框架或窗口中打开所链接的文档。此参数为默认值,通常不用指定。 

_parent,将链接的文件载入含有该链接框架的父框架集或父窗口中。如果含有该链接的框架不是嵌套的
,则在浏览器全屏窗口中载入链接的文件,就象_self参数一样。

_top,在当前的整个浏览器窗口中打开所链接的文档,因而会删除所有框架。

_search 在浏览器的搜索区装载文档,注意,这个功能只在Internet Explorer 5 或者更高版本中适用。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下代码,请帮我将Textview修改为一个imageview 。谢谢 。<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:didi="http://schemas.android.com/apk/res-auto" > <com.blog.demo10.NestedViewGroup android:id="@+id/dd_view_group" android:layout_width="match_parent" android:layout_height="match_parent" didi:header_id="@+id/view_bg" didi:target_id="@+id/target_layout" didi:inn_id="@+id/inner_rv" didi:header_init_top="0" didi:target_init_bottom="250"> <TextView android:id="@+id/view_bg" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:textColor="#f00" android:textSize="25sp" android:textAllCaps="false" android:text="@string/txt_nested_scroll_bg" /> <LinearLayout android:id="@+id/target_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:background="#fff"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/inner_rv" android:layout_width="match_parent" android:layout_height="wrap_content"/> </LinearLayout> </com.blog.demo10.NestedViewGroup> <androidx.appcompat.widget.Toolbar android:id="@+id/my_toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" android:elevation="4dp" android:theme="@style/ThemeOverlay.AppCompat.ActionBar" didi:popupTheme="@style/ThemeOverlay.AppCompat.Light"/> </RelativeLayout>
06-06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值