我使用Google Apps腳本創建了一個小型UiApp。 它使用三個CaptionPanel來組織呈現給用戶的信息。 被包裝在彼此的正上方。有沒有辦法輕鬆地將它們分開?我只是想在面板之間增加一些像素空間。Google Apps腳本中的間距組件UiApp
編輯:這工作:
基於由Bryan P但從Google Developer Website修正答案 var topPanel = app.createCaptionPanel('My Panel').setStyleAttribute('marginBottom', '5px');
。 CSS屬性必須爲駱駝大小寫。
你試過使用樣式屬性填充,10px? –
@Serge insas:填充將填充添加到面板的內部。 – Gerhard