Created
January 7, 2012 17:29
-
-
Save bueltge/1575381 to your computer and use it in GitHub Desktop.
Remove pixel in img for responsive design
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// remove height, width for responsive design | |
(function ($) { | |
$(document).ready(function($) { | |
$( 'img' ).removeAttr( 'height' ).removeAttr( 'width' ); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment