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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?