jQuery-rwdImageMaps

Responsive Image Maps jQuery Plugin

Github星跟蹤圖

jQuery RWD Image Maps

CDNJS

Allows image maps to be used in a responsive design by recalculating the area coordinates to match the actual image size on load and window.resize


Usage:

  • If possible, add correct, unitless width and height attributes to your image map images. You can override these in CSS to make them responsive.
  • Add a link to jQuery in your page, preferably at the bottom just before the closing </body>
  • After jQuery, either in a <script> block or a separate file, call:
$('img[usemap]').rwdImageMaps();

You may also want to wrap it inside a $(document).ready() function, like so:

$(document).ready(function(e) {
    $('img[usemap]').rwdImageMaps();
});

Demo:

http://mattstow.com/experiment/responsive-image-maps/rwd-image-maps.html


Copyright (c) 2016 Matt Stow
Licensed under the MIT license (see LICENSE for details)
Minified version created with Online YUI Compressor: http://www.refresh-sf.com/yui/

主要指標

概覽
名稱與所有者stowball/jQuery-rwdImageMaps
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2012-04-15 05:55:49
推送於2021-12-04 00:53:30
最后一次提交2016-10-18 16:21:15
發布數1
最新版本名稱1.6 (發布於 )
第一版名稱1.6 (發布於 )
用户参与
星數1.6k
關注者數101
派生數706
提交數17
已啟用問題?
問題數107
打開的問題數57
拉請求數2
打開的拉請求數13
關閉的拉請求數6
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?