Line 54: | Line 54: | ||
document.querySelector('div#practice').style.backgroundImage='url("https://static.igem.org/mediawiki/2016/a/a6/T--BNU-China--sky2.jpg")'; | document.querySelector('div#practice').style.backgroundImage='url("https://static.igem.org/mediawiki/2016/a/a6/T--BNU-China--sky2.jpg")'; | ||
} | } | ||
− | var | + | |
− | var | + | var img = $('img.practice-img'); |
− | + | var height = getWH(img, 'height'); | |
− | + | alert(height); | |
− | ); | + | |
− | alert( | + | |
</script> | </script> | ||
</html> | </html> |
Revision as of 14:25, 12 October 2016