html元素a
来源:互联网 发布:c 变量已被优化掉 编辑:程序博客网 时间:2024/06/03 20:14
定义
表示超链接的起始或目的位置。
Designates the start or destination of a hypertext link.
注释
元素a需要指定 href 或 name 属性。
文本和图像都可包含在锚内。作为锚的图像有一个边框,该边框颜色表明该链接是否被访问过。要避免显示此边框,你可设置 img 元素的 BORDER 标签属性为 0 或者省略 BORDER 标签属性。你还可以使用样式表 CSS 来覆盖 a 和 img 元素的默认外观。
注意 当对象table包含在 a 标签内时可能工作不正常。
如果对元素 A 应用 time2 行为的话,那么该元素仅当在时间线上激活时才会变成链接。
此元素在Internet Explorer 3.0及以上版本 的 HTML 和脚本中可用。
此元素是内嵌元素。
此元素需要关闭标签。
The a element requires the href or the name property to be specified.
Both text and images can be included within an anchor. An image that is an anchor has a border whose color indicates whether the link has been visited. To prevent this border from displaying, you can set the img element's BORDER attribute to 0 or omit the BORDER attribute. You can also use Cascading Style Sheets (CSS) attributes to override the default appearance of a and img elements.
Note A table object does not function properly when contained within an a tag.
If the time2 behavior is applied to the A element, it will become a link only when it is active on the timeline.
This element is available in HTML and script as of Internet Explorer 3.0.
This element is an inline element.
This element requires a closing tag.
示例代码
<!-- Link to a server. 链接到服务器 -->
<A HREF="http://www.admin5.com/html">站长网 站长学院主页</A>
<!-- Link to a file in the same directory. 链接到同一目录的文件 -->
<A HREF="home.htm">home.htm</A>
<!-- Open a file in the window specified by TARGET. 在由 TARGET 指定的窗口中打开文件 -->
<A TARGET="viewer" HREF="sample.htm">Open in window</A>
<!-- Include an IMG element as a part of the link. 将 IMG 元素作为链接的一部分。-->
<A HREF="http://www.admin5.com/html"><IMG SRC="../images/logo/blabla_logo01.gif">link</A>
<!-- Link to an anchor. 链接到锚。-->
<A HREF="#anchor">anchor</A>
<!-- Define an anchor. 定义一个锚 -->
<A NAME="anchor">
<!-- Invoke a JScript function 调用 JScript 函数-->
<A HREF="javascript:window.open()">link</A>
- html元素a
- html-2-<a>元素
- HTML a元素
- 超链接:html的a元素
- HTML元素1 - 链接<a>
- HTML-<a>元素的理解
- html —— 元素a与框架元素frame
- html元素a的link visited hover active
- html 点击<a>元素后颜色的变换
- html a元素的target失效,变成新窗口打开
- HTML 元素
- HTML元素
- Html元素
- html元素
- HTML 元素
- HTML元素
- HTML元素
- html元素
- Ubuntu 将adb加入环境变量
- JSP---¬自定义标签库开发
- 软件界的传奇—Anders Hejlsberg
- sicily 1306
- server端json变量赋值给javascript的写法
- html元素a
- 数组的遍历
- 在不断迭代中改进--《全景探秘游戏设计艺术》笔记
- Jquery联动下拉菜单
- 各浏览器中使用getAttribute获取checkbox/radio的checked值不同
- SAP MM模块简单介绍
- DIV 里 table 居中的问题
- C#返回多个参数 ref及out
- 迭代器设计模式的实现。