Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script z指数不';不能使用SetStyleAttributes_Google Apps Script - Fatal编程技术网

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”)