日期:2014-05-17  浏览次数:20685 次

<g:image id="controlImage" style="position:absolute; " onclick="controlImageClick();" />
请问这是什么意思呀?:(
<div   id= "playbackControls ">
<g:image   id= "controlImage "   style= "position:absolute;   "   onclick= "controlImageClick(); "   />

</div>
如果一个层里要插入图片不就直接是 <image> 吗?
怎么要 <g:image   ??
难道是要JS中控制吗??

------解决方案--------------------
参考
http://msdn2.microsoft.com/en-us/library/aa359314.aspx

This example shows how to use the src and rotation properties in script.

var oImage = document.getElementById(“myImage”);
oImage.src = “prettyPicture.png”;
oImage.rotation = 30; // degrees

This example shows you how to use g:image in HTML code.

<g:image id=’myImage’>