0
我有這個圖像地圖,我正在嘗試讓每個選定區域響應...因爲當更改屏幕大小時,圖像適應正確,但是區域不適應圖像的新大小。在這裏你可以看到藍色的選定區域。如何製作響應圖像地圖的每個區域
藍色區域中選擇 在這裏,我改變屏幕的大小,但該地區DONT遵循映像
<img class="img-fluid" src="https://image.ibb.co/jaFWgv/MENU.jpg" alt="" usemap="#Map" />
<map name="Map" id="Map">
<area class="img-fluid" shape="rect" href="codificador" coords="215, 310, 328, 396" /> <!--Codificador 3-->
<area class="img-fluid" shape="rect" href="codificador" coords="215, 191, 328, 277" /> <!--Codificador 2-->
<area class="img-fluid" shape="rect" href="codificador" coords="215, 70, 328, 156" /> <!--Codificador 1-->
<area shape="rect" href="multiplexor"coords="419, 175, 471, 290" /> <!--Multiplexor-->
<area shape="rect" href="remux" coords="596, 177, 647, 291" /> <!--Remultiplexor-->
<area shape="rect" href="modulador" coords="771, 174, 821, 293" /> <!--Modulador-->
<area shape="poly" href="#" coords="142, 98, 204, 98, 204, 94, 218, 102, 204, 109, 204, 104, 142, 105" /> <!--Flecha HD-->
<area shape="poly" href="#" coords="142, 217, 204, 217, 204, 213, 218, 221, 202, 227, 204, 223, 142, 224" /><!--Flecha SD-->
<area shape="poly"href="#" coords="141, 365, 203, 365, 203, 361, 217, 369, 203, 376, 203, 371, 141, 372" /><!--Flecha LD-->
<area shape="poly" href="#" coords="327, 107, 358, 107, 358, 203, 402, 203, 402, 195, 424, 206, 402, 217, 402, 211, 349, 211, 348, 116, 327, 116"/> <!--Flecha ASI 1-->
<area shape="poly" href="#" coords="329, 230, 405, 229, 405, 226, 424, 233, 405, 241, 405, 236, 329, 237" /><!--Flecha ASI 2-->
<area shape="poly" href="#" coords="327, 361, 358, 361, 359, 265, 403, 265, 402, 272, 424, 263, 402, 253, 402, 259, 349, 259, 349, 354, 327, 354" /> <!--Flecha ASI 3-->
<area shape="poly" (click)="TSmethod()" coords="471, 230, 583, 230, 582, 228, 600, 233, 582, 240, 583, 236, 471, 237" /><!--Flecha TS-->
<area shape="poly" (click)="BTSmethod()" coords="644, 230, 756, 230, 755, 228, 773, 233, 755, 240, 756, 236, 644, 237" /><!--Flecha BTS-->
</map>
<script src="../js/imageMapResizer.min.js"></script>
<script type="text/javascript">
$('map').imageMapResize();
</script>
感謝你好!我一直在嘗試使用圖像映射調整器,但無法使其工作...我已更新我的代碼,以便您可以看到我是如何做到的,但不工作...您能否幫助我將其調整爲我的代碼請!?即時通訊使用角2 ... –