我有一个脚本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/