Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 zoomooz.js 脚本时,要启用对目标的缩放,我们只需添加 zoomTarget 类:
前任。<div id="container" class="zoomTarget"></div>
<div id="container" class="zoomTarget"></div>
但是,缩放只会在单击“容器”时发生。调整浏览器窗口大小后,有没有办法自动缩放到目标“容器”?
可能是什么$(window).resize(function(){ $("#container").zoomTarget(); });?
$(window).resize(function(){ $("#container").zoomTarget(); });