2012-08-15 81 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