EduardET

Ie 11 fix image sizes

Dec 7th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. /*Fix image size on IE 11 - do not delete this */
  3. ( function( $ ) {
  4.     $( document ).ready( function() {
  5.         var img = $( "body.ie .et_pb_blurb_description p img" );
  6.         img.each( function() {
  7.             var width = $(this).attr("width"),
  8.                 height = $(this).attr("height");
  9.             $(this).css({
  10.                 'width': width,
  11.                 'height': height,
  12.             })
  13.         } )
  14.     } );
  15. } )( jQuery );
  16. </script>
Advertisement
Add Comment
Please, Sign In to add comment