JqZoom and Twitter Bootstrap Conflict

折月煮酒 提交于 2019-12-08 03:52:27

问题


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.


回答1:


You need to override the max-width.

.zoomWindow img {max-width:none}



回答2:


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

.zoomWrapperImage img{
  max-width: none;
}



回答3:


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;}


来源:https://stackoverflow.com/questions/12825855/jqzoom-and-twitter-bootstrap-conflict

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!