还有一个类似的问题: Google App Script background transparent with HtmlService 没有满意的答案。使用HtmlService在网站应用程序脚本中透明背景
在我的情况,我有这个简单的应用程序脚本嵌入谷歌站点:
CODE.GS
function doGet() {
return HtmlService.createTemplateFromFile('Page')
.evaluate().setSandboxMode(HtmlService.SandboxMode.NATIVE);
}
page.html中
<html>
<body style="background-color:transparent">
How do I make it<br/>transparent ?
</body>
</html>
导致页面看起来像这个:
https://sites.google.com/site/seanpj01/backtest
即使设置
<body style="background-color:transparent">
作品的伎俩,如果实现为直XML包裹的小工具,它在这种情况下,(我怀疑CAJA)失败。这里有一个关于这个问题的讨论: http://productforums.google.com/forum/#!topic/sites/KU9nSz37c6U
但是再次,无济于事。由于