0
這樣的代碼適用於標籤:中心按鈕
function doGet() {
var app = UiApp.createApplication().setStandardsMode(true);
return app.add(app.createLabel('centered').setStyleAttributes(
{marginLeft: 'auto',
marginRight: 'auto',
width: '100px'}));
}
但它按鈕,它不工作。它不居中按鈕。爲什麼以及如何使它起作用?
你也應該提到,這個問題只能用IE瀏覽器顯示,代碼可以在Chrome,Firefox和Safari上正常工作。 –
@Serge insas,對於按鈕它不 – mirt