Created
January 27, 2015 09:43
-
-
Save jesseincn/5eec7ca109c44f6a3909 to your computer and use it in GitHub Desktop.
防止图片未加载完成计算尺寸误差
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
var $$ = function (func) { | |
if (document.addEventListener) { | |
window.addEventListener("load", func, false); | |
} | |
else if (document.attachEvent) { | |
window.attachEvent("onload", func); | |
} | |
} | |
$$(function () { | |
$("#bjimg ul li").height($("#bjimg ul li img").height()); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment