Html中的area元素的属性应用范例
2013-05-21 15:29
323 查看
属性:shape=""
rectangle / rect 矩形:支持4个坐标
polygon / poly 多边形:支持10个坐标
circle / circ 圆形:支持3个坐标
属性:coords=""<!--坐标1,坐标2,坐标3-->
属性:href=""<!--跳转页面-->
范例:
rectangle / rect 矩形:支持4个坐标
polygon / poly 多边形:支持10个坐标
circle / circ 圆形:支持3个坐标
属性:coords=""<!--坐标1,坐标2,坐标3-->
属性:href=""<!--跳转页面-->
范例:
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Creating an Image Map</title> </head> <body> <p> <img src="images/gallery_map.gif" alt="Gallery Map" width="500" height="300" border="0" usemap="#gallery" /> <map name="gallery"> <area shape="circle" coords="154,150,59" href="foyer.html" target="_self" alt="Gallery foyer"> <area shape="poly" coords="270,79,351,79,351,15,486,15,486,218,272,218,292,166,292,136,270,76" href="sculpture_garden.html" target="_self" alt="Sculpture garden"> <area shape="rect" coords="325,224,488,286" href="workshops.html" target="_self" alt="Artists studios"> </map> </p> </body> </html>
相关文章推荐
- HTML自学之旅(一)基本元素与属性练习
- html的学习二--类,块,表格,列表。布局元素和属性总结
- 【网站制作视频教程】-HTML CSS列表元素ul,ol,dl的研究与应用!-传智播客
- 几个网站的源文件分析【有感于html常用元素和属性】
- HTML中的id和name属性应用
- HTML集合属性的应用
- [html&css]Pass Through - 41.HTML 使用负值设置页面元素的margin属性
- HTML中的input元素的属性
- html中的http-equiv属性应用详解
- asp.net 服务器控件使用HTML(input)元素属性
- htmlarea3.0的应用问题
- HTML教程 - 基本元素/标签及属性
- HTML CSS列表元素ul,ol,dl的研究与应用
- 关于HTML中link元素的onload属性总结
- 在javaScript中,用innerHTML 属性获取或替换 HTML 元素的内容
- html中bootstrap表单内元素的各类属性简析
- HTML -- input 元素的type属性的秘密
- HTML集合属性的应用
- 经常被误用的html JavaScript css 的元素 方法 和属性?
- HTML中td元素的nowrap属性