简体   繁体   English

html + css usemap不起作用

[英]html+css usemap doesn't work

I want to do a slider that it's each image have and reference. 我想做一个滑块,它是每个图像都具有和引用的。 Slider works, but reference showed only 5th reference. 滑块可以工作,但参考文献仅显示第5个参考文献。 I don't know what I would do =( 我不知道该怎么办=(

Here's what I have so far: 这是我到目前为止的内容:

<map name="rfr-ma">
    <area shape="rect" coords="0,0,640,320" href="ma.html">
</map>
<map name="rfr-jj">
    <area shape="rect" coords="0,0,640,320" href="jj.html">
</map>
<map name="rfr-kn">
    <area shape="rect" coords="0,0,640,320" href="kn.html">
</map>
<map name="rfr-aj">
    <area shape="rect" coords="0,0,640,320" href="aj.html">
</map>
<map name="rfr-bk">
    <area shape="rect" coords="0,0,640,320" href="bk.html">
</map>

<!-- Sildes -->

<img id="one" src="img/ma.jpg"  usemap="#rfr-ma"/>
<img id="two" src="img/kn.jpg" usemap="#rfr-kn"/>
<img id="three" src="img/aj.jpg" usemap="#rfr-aj"/>
<img id="four" src="img/bk.jpg" usemap="#rfr-bk"/>
<img id="five" src="img/jj.jpg" usemap="#rfr-jj"/>

您的座标重叠,即指向同一位置:coords =“ 0,0,640,320”将每个链接更改为不同的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM