CSS转换:perspective#html2canvas

时间:2016-10-01 15:14:43

标签: html css html2canvas

І使用html2canvas将div作为图像。

我用CSS转换保存div:perspective? 我的意思是这样的:

#div2 {
  background: linear-gradient(to right, rgba(248, 80, 50, 1) 0%, rgba(241, 111, 92, 1) 50%, rgba(246, 41, 12, 1) 51%, rgba(240, 47, 23, 1) 71%, rgba(231, 56, 39, 1) 100%);
  width: 60px;
  height: 90px;
  transform: perspective(200px) rotateY(45deg);
}

#div2 {
  background: linear-gradient(to right, rgba(248, 80, 50, 1) 0%, rgba(241, 111, 92, 1) 50%, rgba(246, 41, 12, 1) 51%, rgba(240, 47, 23, 1) 71%, rgba(231, 56, 39, 1) 100%);
  width: 60px;
  height: 90px;
  transform: matrix3d(1, 0, 0, -0.008, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0.23, 1);
}

enter image description here

0 个答案:

没有答案
相关问题