html – 图像映射不工作在IE
发布时间:2020-12-14 18:57:55 所属栏目:资源 来源:网络整理
导读:我在我的网站上有一个图像映射,它除了IE以外的所有功能都有效. 这是代码: div id="content" div style="text-align:center; width:302px; margin-left:auto; margin-right:auto;" img id="alexpeteNav" src="nav.jpg" usemap="Aalexpetenav" border="0" wid
我在我的网站上有一个图像映射,它除了IE以外的所有功能都有效.
这是代码: <div id="content"> <div style="text-align:center; width:302px; margin-left:auto; margin-right:auto;"> <img id="alexpeteNav" src="nav.jpg" usemap="Aalexpetenav" border="0" width="302" height="274" alt="" /> <map id="BalexpeteNav" name="AalexpeteNav"> <area shape="rect" coords="0,297,72" href="http://doubleohnine.com/" alt="009" title="009" /> <area shape="rect" coords="0,68,140" href="about.html" alt="About alexpete" title="About alexpete" /> <area shape="rect" coords="0,139,211" href="https://plus.google.com/104897364451129767176" alt="Google+" title="Google+" /> <area shape="rect" coords="0,209,269" href="http://www.facebook.com/alexpete" alt="Facebook" title="Facebook" /> </map> </div> </div> 有什么建议么?原因是什么? 该网站在线www.alexpete.com. 谢谢. 解决方法
usemap要求图像映射有效的
hash-name reference,即地图名称前面的#.
我猜其他的浏览器在这方面比较宽松. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读