当前位置: 代码迷 >> HTML/CSS >> <g:image id="controlImage" style="position:absolute; " onclick="controlImageClick();" />解决方案
  详细解决方案

<g:image id="controlImage" style="position:absolute; " onclick="controlImageClick();" />解决方案

热度:830   发布时间:2012-02-25 10:01:49.0
<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’>
  相关解决方案