【问题标题】:Image Map Not Working In IE图像映射在 IE 中不起作用
【发布时间】:2011-11-05 06:14:33
【问题描述】:

我的网站上有一个图像地图,它适用于除 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,0,297,72" href="http://doubleohnine.com/" alt="009" title="009" />
    <area shape="rect" coords="0,68,297,140" href="about.html" alt="About alexpete" title="About alexpete" />
    <area shape="rect" coords="0,139,297,211" href="https://plus.google.com/104897364451129767176" alt="Google+" title="Google+" />
    <area shape="rect" coords="0,209,297,269" href="http://www.facebook.com/alexpete" alt="Facebook" title="Facebook" />
    </map>
    </div> 
    </div>

有什么建议吗?原因?

该网站位于 www.alexpete.com。

谢谢。

【问题讨论】:

    标签: html internet-explorer map imagemap


    【解决方案1】:

    usemap 需要一个有效的hash-name reference 到图像映射,即在映射名称之前#

    我想其他浏览器在这方面会更宽容。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-12-06
    • 2010-12-13
    • 1970-01-01
    • 2014-05-18
    • 1970-01-01
    • 2014-04-21
    • 2023-03-19
    • 2012-10-08
    相关资源
    最近更新 更多