当前位置: 首页 > 网络学院 > 网页制作基础教程 > WEB设计综合 > 框架中的“target”

WEB设计综合
使用css让英文文本自动换行
兼容IE6/IE7/FF的页面最小宽度设置

WEB设计综合 中的 框架中的“target”


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 2131 ::
收藏到网摘: n/a

target=_self

This will load the page in the same frame as the caller.
表示在目前窗口或框架里打开链接(默认的)

target=_parent

This causes the page to load in the same frameset as 
the caller taking the place of any sub frames.
表示在父窗口或框架里打开链接

target=_top

This loads the resulting page into the full body of 
the current window eliminating any frames.
表示在顶层框架里打开新链接

target=_blank

This opens up a new window and loads the page in to it.
表示始终在不同的新窗口打开链接

target=_new

Opens a new window and the page loads in it, all other links using same target open in this window.

表示始终在同一个新窗口打开链接

Whats this all about?
这些都是些什么东西呢?

By assigning a name to a frame via the name attribute, authors can refer to it as the "target" of links defined by other elements.

通过name属性为一个框架命名,作者就可以查阅由其它元素所定义的链接“target”。

e.g. If my frame is called "80four", then to get a link to open in that frame the code would read:

举个例子来说,如果我的框架叫做“80four”,那么,在这个框架中打开链接的具体代码如下:

<a href="pagename.html" target="80four">link name</a>

Then pagename.html would open in the frame "80four".

此时,“pagename.html”将在“80four”框架中打开。

Example:
案例:

Links
链接

Template Monster
Template Tunning
Web Design Library

评论 (0) All

登陆 | 还没注册?