Google apps script z指数不';不能使用SetStyleAttributes
我只是注意到,每当我使用Google apps script z指数不';不能使用SetStyleAttributes,google-apps-script,Google Apps Script,我只是注意到,每当我使用SetStyleAttribute('z-index',x)时,z-index就被适当地添加到HTML中的内联样式中。然而,当我使用 SetStyleAttributes({ 'z-index': zIndex, ...other items}); 它不会被添加到内联html中,也不能正常工作。其他人注意到了吗?尝试使用zIndex(在camelCase中)。不支持“-”字符。.SetStyleAttribute确实接受它,但是Google的开发者参考仍然谈到在
SetStyleAttribute('z-index',x)
时,z-index就被适当地添加到HTML中的内联样式中。然而,当我使用
SetStyleAttributes({
'z-index': zIndex,
...other items});
它不会被添加到内联html中,也不能正常工作。其他人注意到了吗?尝试使用zIndex(在camelCase中)。不支持“-”字符。.SetStyleAttribute确实接受它,但是Google的开发者参考仍然谈到在camelCase中使用CSS属性(“fontSize”,而不是“font size”)