如何去得DIV内图片的宽度,高度!
<div id= "myDiv "> <img name= "xxtp " id= "xxtp " src= "../../All Users/Documents/My Pictures/示例图片/label_1.gif " alt= " " width= "195 " height= "90 " /> </div>
如何用JAVASCRIPT取得mydiv中的xxtp的宽度与高度?!
------解决方案--------------------document.getElementById( "xxtp ").width
document.getElementById( "xxtp ").height
------解决方案--------------------div.offsetLeft
div.offsetTop
------解决方案--------------------div.offsetLeft;
div.offsetRight;