Created
July 11, 2012 08:45
-
-
Save gawaooooo/3089082 to your computer and use it in GitHub Desktop.
【jQuery】IE7でjQueryのattrが効かない
This file contains 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
// jQueryで以下のコードを実行したら、IE7だけ効かなかった | |
$(ui.helper) | |
.find('img') | |
.attr({'width': '100px', 'height': '100px'}) | |
.end() | |
.find('span.count').remove(); | |
// IE7はimgのwidth, heightが変わらない | |
// attr->cssに変更したら解決 | |
$(ui.helper) | |
.find('img') | |
.css({'width': '100px', 'height': '100px'}) | |
.end() | |
.find('span.count').remove(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment