css - 使用转换 :rotate does not pass caja? 的 Htmlservice

标签 css google-apps-script google-caja

我有一个脚本doGet,我在其中使用HtmlService.createTemplateFromFile呈现 html 文件的服务。

在 html 中我使用如下样式表

 .title {
  height:100px;
  width:200px;
  border-radius:10px;
  border: 20px solid #404BBD ;
  font-size:90px;
  transform: rotate(30deg);
  -ms-transform: rotate(30deg);
  -webkit-transform: rotate(30deg)
  }

我将其应用于 html 正文中的 div 标记。尽管似乎没有发生 DIV 的旋转,但应用了大部分 Css。 <div class="title">Hello</div>

我是不是做错了什么Google Caja真的不接受轮换吗?

最佳答案

Caja 不会将 transform 属性列入白名单。欢迎随时request it be added .

关于css - 使用转换 :rotate does not pass caja? 的 Htmlservice,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15935505/

相关文章:

html - 如何限制 'pre' 容器内的 "flex"标签宽度?

google-apps-script - 如何停止执行 Google Apps 脚本?

google-apps-script - 如何解析存储在我的谷歌驱动器中但作为 html 类型突出的 XML 文件?

javascript - 如何通过 Google CAJA 传递库?

jquery - 如何使用 htmlService 定位 jQuery 对话框

google-apps-script - 如何让 Caja 在脚本标签中保留模板文本?

jquery - 如何为具有 Jquery 的 aspx 页面中的列表实现 "bring to front"

jquery - 奇怪的悬停错误

html - 如何将 CSS 点前导符用于 "three column"列表?