2014-05-12 45 views
0

我使用Google Apps腳本創建了一個小型UiApp。 它使用三個CaptionPanel來組織呈現給用戶的信息。 被包裝在彼此的正上方。有沒有辦法輕鬆地將它們分開?我只是想在面板之間增加一些像素空間。Google Apps腳本中的間距組件UiApp

編輯:這工作:
基於由Bryan P但從Google Developer Website修正答案 var topPanel = app.createCaptionPanel('My Panel').setStyleAttribute('marginBottom', '5px');

。 CSS屬性必須爲駱駝大小寫。

+0

你試過使用樣式屬性填充,10px? –

+0

@Serge insas:填充將填充添加到面板的內部。 – Gerhard

回答

0

var panel1 = app.createCaptionPanel().setStyleAttribute('margin-bottom', '5px')

+0

@LaughDonor你指的是什麼鏈接的答案? –

+0

錯誤。你能解釋一下你的代碼如何幫助解決OP的問題,而不是僅僅發佈一行代碼。 –