JqZoom and Twitter Bootstrap Conflict

2019-06-05 21:48发布

Here's a jsfiddle.

Using inner zoom (though it doesn't work with any of the zoom types), it should work like so: http://www.mind-projects.it/projects/jqzoom/demos.php#demo4

Any ideas? Seems to be an issue with the responsive nature of Bootstrap. Removing Bootstrap's max-width:100% CSS declaration on the img tag improves it a bit, but it remains broken.

3条回答
Deceive 欺骗
2楼-- · 2019-06-05 22:03

You need to override the max-width.

.zoomWindow img {max-width:none}
查看更多
我欲成王,谁敢阻挡
3楼-- · 2019-06-05 22:17

I had the same problem. I fixed it adding this:

.zoomWrapperImage img{
  max-width: none;
}
查看更多
该账号已被封号
4楼-- · 2019-06-05 22:21

You might like to add some other fixes for img max-width:100%

This code can go immediately after instantiating the jqzoom:

jQuery('.zoomPup img').css('width', jQuery('.zoomPad img').width() );
jQuery('.zoomPup img').css('height', jQuery('.zoomPad img').height() ); 

And this in the general CSS:

.zoomPup img {max-width:none; max-height: none;}
.zoomWindow img {max-width:none; max-height: none;}
查看更多
登录 后发表回答