首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

javascript当中Map Area Shape 和onmousemove的用法

例 4.2(MapAreaShapeMouseMoveIEFF.html) <html> <head> <title> img hidefocus="true"必须加,否则ie8中点击map后,会粗线一个contour, 轮廓线</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <script type="text/javascript"> function showTip(event,txt) { var newDiv = document.getElementById('newDiv'); newDiv.style.display="block"; //clientX是鼠标指针位置相对于窗口客户区域的 x 坐标 newDiv.style.left=event.clientX+10; //必须加上10,如果不加10的话,老会闪烁 newDiv.style.top=event.clientY+5; newDiv.style.position="absolute"; //必须指定这个属性,否则newDiv层无法跟着鼠标动 newDiv.innerHTML="

" + txt + "
";; } function closeTip() { var newDiv = document.getElementById('newDiv'); newDiv.style.display="none"; } </script> <style type="text/css"> </style> </head> <body>
<map name="qixyplanetmap" id="planetmap"> us rect </map> < p>马克-to-win:注释:img 元素中的 "usemap" 属性引用 map 元素中的 "id" 或 "name" 属性(根据浏览器),所以我们同时向 map 元素添加了 "id" 和 "name" 属性。

a.矩形:必须使用四个数字,前两个数字为左上角座标,后两个数字为右下角座标

01
您找到你想要的搜索结果了吗?
是的
没有找到

CSS样式的优先级补遗2

最后,按正确的顺序写出三个数字,不要加空格或逗号,得到一个三位数。( 注意,你需要将数字转换成一个以三个数字结尾的更大的数)。相应于选择符的最终数字列表可以很容易确定较高数字特性凌驾于较低数字的。 以下是一个按特性分类的选择符的列表: H1 {color:blue;} /* 特性值为:1 */ P EM {color:purple;} /* 特性值为:2 */ .apple {red;} /* 特性值为:10 */ P.bright {color:yellow;} /* 特性值为:11 */ P.bright EM.dark {color:brown;} /* 特性值为:22 */ \#id316 {color:yellow} /* 特性值为:100 */ 从上表我们可以看出#id316具有更高的特殊性,因而它有更高的权重。当有多个规则都能应用于同一个元素时,权重越高的样式将被优先采用。

03
领券