当前位置: 首页 > 网络学院 > 网页制作基础教程 > WEB设计综合 > 框架中的“target”
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 |
target=_top | This loads the resulting page into the full body of |
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