1
即时消息使用JQzoom为一个项目即时通讯不做桌面版本,但我需要得到productimage响应。宽度和高度在脚本的选项中定义。响应式问题JQzoom
;(function($){
$.fn.zoom = function(options){
var _option = {
align: "left",
thumb_image_width: 600,
thumb_image_height: 600,
source_image_width: 1200,
source_image_height: 1200,
zoom_area_width: 600,
zoom_area_height: "justify",
zoom_area_distance: 10,
zoom_easing: true,
click_to_zoom: false,
zoom_element: "auto",
small_thumbs: 12,
smallthumb_inactive_opacity: 0.4,
smallthumb_hide_single: true,
smallthumb_select_on_hover: false,
smallthumbs_position: "bottom",
show_icon: true,
hide_cursor: false,
speed: 600,
autoplay: true,
autoplay_interval: 6000,
keyboard: true,
right_to_left: false,
}
现在是我的问题,我能得到这个以%或VW/VH工作,因为如果我填例如32vh脚本不能正常工作。 也许有办法让他们的选择接受它,或者我必须改变其余的代码?
难道我的解决方案的工作? –