日期:2014-05-16  浏览次数:20356 次

js设置applet图形宽高在chrome无效
项目中要用到applet图形,图形的宽高是在js中指定的
 </body>
   <script   language="javascript"> 
var callApplet=document.applets.byApplet;
callApplet.width=window.screen.width+50-288-22;
callApplet.height=callApplet.width*3/4;
//alert(document.applets.byApplet.width+" xx "+document.applets.byApplet.height)
</script> 
</html>

在IE下显示正常,图形宽高和alert弹出高度一致,
但是在chrome中,图形就特别小,像是一个缩略图,alert出的宽高还是正确的,但是并没有反映到图形上来,请高手指教啊!在线求救

------解决方案--------------------
我来接分吧!!!