首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >图像映射编号显示

图像映射编号显示
EN

Stack Overflow用户
提问于 2021-05-21 20:31:45
回答 1查看 31关注 0票数 1

例如,我有一个图像映射

代码语言:javascript
复制
<img  src="http://www.isdntek.com/tagbot/misc/bambi.jpg" usemap="#Map" class="mapp">

<map name="Map" id="Map">
    <area class="map_circle" item="state1" target="" alt="1" title="1" href="#links" coords="223,541,62" shape="circle"  data-maphilight='{"alwaysOn":true,"stroke":false,"fillColor":"FFFFFF","fillOpacity":"1"}'>/>
    <area item="state2" target="" alt="2" title="2" href="#links" coords="75,274,NaN" shape="circle">
    <area item="state3" target="" alt="3" title="3" href="#links" coords="338,358,NaN" shape="circle">
    <area item="state4" target="" alt="4" title="4" href="#links" coords="595,414,NaN" shape="circle">
    <area item="state5" target="" alt="5" title="5" href="#links" coords="626,284,NaN" shape="circle">
    <area item="state6" target="" alt="6" title="6" href="#links" coords="707,342,NaN" shape="circle">
    <area item="state7" target="" alt="7" title="7" href="#links" coords="799,278,NaN" shape="circle">
</map>

我想让它在这些圆圈中仍然显示标题,例如,1,2,3,4在我的圆圈中,现在是空的

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-05-21 20:43:35

您忽略了area元素circle坐标半径(有意或错误),这将导致未定义的区域。

你应该填满所有的circle coords

代码语言:javascript
复制
<area item="state2" target="" alt="2" title="2" href="#links" coords="75,274,20" shape="circle"> <!-- 20 instead of NaN -->
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67636923

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档