Skip to content

html 的area只能在固定尺寸的html上使用,通过这段js就可以实现自动适配了

License

Notifications You must be signed in to change notification settings

jingxiuman/mapArea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mapArea

html 的area只能在固定尺寸的html上使用,通过这段js就可以实现自动适配了 #使用方法

  • 在map标签下面的area标签需要添加class="MXC_hotPhotoItem"
  • 默认所有的坐标是基于750宽度的图片进行定位
  • 如果图片大小非标准的750,可以修改模块中的代码 originalWidth = <指定大小>
  • Map的name需要保证唯一性 #版权协议 代码遵守MIT协议

About

html 的area只能在固定尺寸的html上使用,通过这段js就可以实现自动适配了

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published