如何使用htmlService定位jQuery对话框

时间:2014-11-21 18:26:25

标签: jquery css google-apps-script google-caja

jQuery位置使用caja不支持的“Fixed”,因此简单的position: {my: "top", at: "top", of: $("#here")}不适用于htmlService。因此,为了移动我的小部件,我必须使用css并将位置更改为绝对。

有什么方法可以使用htmlService获得与position: {my: "top", at: "top", of: $("#here")}相同的效果吗?

或者我可以使用jQuery对话框的替代方案吗?当有人点击按钮而不离开侧边栏时,我想打开一个简单的提示。

1 个答案:

答案 0 :(得分:0)

我看到您在单击按钮时想要一个对话框。为此,您可以参考以下文档:

  1. https://developers.google.com/apps-script/guides/ui-service#CustomHTML

  2. https://developers.google.com/apps-script/guides/dialogs#alert_dialogs

  3. 希望有所帮助!

相关问题