HTML 标签
定义和用法
<area> 标签定义图像映射中的区域(注:图像映射指得是带有可点击区域的图像)。
area 元素总是嵌套在 <map> 标签中。
注释:<img> 标签中的 usemap 属性与 map 元素 name 属性相关联,创建图像与映射之间的联系。
实例
带有可点击区域的图像映射:
<img src="planets.jpg" border="0" usemap="#planetmap" alt="Planets" />
<map name="planetmap" id="planetmap">
<area shape="circle" coords="180,139,14" href ="venus.html" alt="Venus" />
<area shape="circle" coords="129,161,10" href ="mercur.html" alt="Mercury" />
<area shape="rect" coords="0,0,110,260" href ="sun.html" alt="Sun" />
</map>
TIY
浏览器支持
所有主流浏览器都支持 <area> 标签。
HTML 与 XHTML 之间的差异
在 HTML 中,<area> 没有结束标签。
在 XHTML 中,<area> 必须正确地关闭。
提示和注释:
注释:<img> 中的 usemap 属性可引用 <map> 中的 id 或 name 属性(由浏览器决定),所以我们需要同时向 <map> 添加 id 和 name 两个属性。
必需的属性
DTD 指示此属性允许在哪种 DTD 中使用。S=Strict, T=Transitional, F=Frameset.
属性值描述DTD
alt
text
定义此区域的替换文本。
STF
可选的属性
属性值描述DTD
coords
坐标值
定义可点击区域(对鼠标敏感的区域)的坐标。
STF
href
URL
定义此区域的目标 URL。
STF
nohref
nohref
从图像映射排除某个区域。
STF
shape
default
rect
circ
poly
定义区域的形状。
STF
target
_blank
_parent
_self
_top
规定在何处打开 href 属性指定的目标 URL。
TF
标准属性
id, class, title, style, dir, lang, xml:lang, tabindex, accesskey
如需完整的描述,请访问标准属性。
事件属性
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove,
onmouseout, onkeypress, onkeydown, onkeyup, onfocus, onblur
如需完整的描述,请访问事件属性。
TIY
创建图像映射本例显示如何创建带有可供点击区域的图像映射。其中的每个区域都是一个超级链接。
相关文档:
Frame框架现已不怎么常用,给个例子以展示其属性。
frame例子:
<frameset cols="50%,*">
<noframes>
<body>
Sorry,your explorer doesn't support the frame...
</body>
</noframes>
<frame name="left" src="left.html">
<frameset rows="*,30%">
<frame name=" ......
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
</title>
</head>
<body>
<table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF"
&n ......
I always consider the coolitm control only can use its control tag in its body.
But I found that it can use html tag ,this very good.
so I show the sample to other:
<ext:Window
ID="Window1"
runat="server"
Width="500"
Height="485"
......
通过前面介绍的HTML标签,我们已经可以初步完成一个不错的网页了,但我们做的网页就像一份报纸一样,唯一比报纸特殊的一点,就是我们可以在不同的页面之间通过超链接跳转,但即便如此,我们依然只能让别人阅读网页,而无法通过网页进行交互;
要能够通过网页进行交互,则必须具备两个前提条件,信息输入组件和信息通信方式 ......
完成以下部分:
1. 树可以接受singleXml格式和json以及jsonarray格式的数据;
2. 复选框勾选和折叠子节点的逻辑用div嵌套来实现,效率更高;并提供了快速画树的方法;(存在bug:快速画树效率并不高,div嵌套有问题);
3.增加树的深度 this.depth ......