在线手册

  • tag map

    ... Planets" usemap="#planetmap"> <map name="planetmap">   <area ... Note: In HTML5, if the id attribute of the <map> tag is also specified, it must have the same ...

  • dom obj map

    ... 元素的集合 images 返回所有与图象地图相关 <img> 和 <object> 元素的集合 Map 对象熟悉 属性 描述 name 设置或返回图像地图的 name 属性值 标准属性和事件 Map 对象同样支持标准的 属性 和 事件。 相关页面 HTML DOM 参考手册: Area 对象 HTML 参 ...

  • dom obj map

    ... Returns a collection of all <img> and <object> elements associated with the image-map Map Object Properties Property Description name Sets or returns the value of the name attribute of an image ...

  • prop map name

    ... will no longer exist (clickable areas will no longer be clickable). Note: In HTML5, the id attribute of the <map> element must have the same value as the name attribute (and it cannot be null or empty). Browser Support The ...

  • coll map areas

    ... 对象 HTML DOM Map name 属性 → Map areas 集合 Map 对象 实例 获取图片地图中 <area> 元素的数目: var x = document.getElementById("planetmap").areas.length; x 输出值为: 3 尝试一下 » 定义和使用 areas 集合返回图像地图中所有 <area> 元素 ...

  • prop map name

    ... 创建图像与映射之间的关系。 注意: 当设置了 name 属性时,你也需要设置 <img>'s usemap 属性 - 如果没有设置, image 和 map 元素都不再关联(可点击区域将不再可点击)。 注意: 在 HTML5 中, <map> 元素的 id 属性与 name 属性的值必须相同 (但不允许是 null 或空值)。 浏览器支持 所有主流浏览器都支持 name 属性。 ...

  • coll map areas

    ... Try it yourself » Example item(index) Get the URL of the first <area> element in an image-map: var x = document.getElementById("planetmap").areas.item(0).href; The result of x will be: //www.w3schools.com ...

  • att map name

    ... ;area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus"> </map> Try it yourself » Definition and Usage The required name attribute specifies the name of an image ...

  • tag map

    ... 于客户端图像映射。图像映射指带有可点击区域的一幅图像。 <img>中的 usemap 属性可引用 <map> 中的 id 或 name 属性(取决于浏览器),所以我们应同时向 <map> 添加 id 和 name 属性。 area 元素永远嵌套在 map 元素内部。area 元素可定义图像映射中的区域。 HTML 4.01 与 HTML5之间的差异 注意: 在 HTML5 中, 如果 id ...

  • jsref map

    ... , 25];function myFunction() {    x = document.getElementById("demo")    x.innerHTML = numbers.map(Math.sqrt);} The result will be: 2,3,4,5 Try it yourself » More "Try it Yourself" examples ...

推广服务(新)
最新文章