2012-08-15 77 views
0

with google apps script using IE 9 image.setStyleAttribute(“position”,“fixed”); 不适合我。它在铬和ff中工作正常。有任何想法吗?setStyleAttribute position fixed in ie 9 with google apps script

显示图像,但它在我滚动时移动。任何人有固定的,即 工作(固定7之前的版本不支持)

var app = UiApp.createApplication().setTitle('fixed pos'); 

var image = app.createImage("BMW_700_sport_BW_1.JPG"); 
image.setStyleAttribute("position", "fixed"); 
app.add(image); 

回答

1

试试这个:

var app = UiApp.createApplication().setTitle('fixed pos').setStandardsMode(true); 
+0

哇 - 作品,谢谢。不利的一面是,很多小部件现在都是错误的尺寸:( – eddyparkinson 2012-08-15 05:19:50

+0

是的,不幸的是标准模式是一个全有或全无的命题。 – 2012-08-15 05:49:27