矩阵变换显示值

问题描述 投票:-1回答:1

我需要在代码值中给出矩阵,但我不知道如何做到这一点。你能帮助我吗 ?

这就是我应该获得的价值

<html lang="pl">
<html><head><meta charset="utf-8"><title>New</title>
<style type="text/css">
body font-size:20px; margin:0px 100px;
div position:absolute; top:200px; left:200px; width:100px; height:100px;
background-color:rgba(180,220,180,0.2);border: 1px dotted red;
#el1 transform: rotate(122deg) scale(0.7080,1.0700) translate(15px,34px);
#el2 transform: matrix(//here);
</style></head>
<body><h1>Transformation</h1>
<div id="el1">el 1</div>
<div id="el2">el 2</div>
</body></html>
</pre>

抱歉编辑错误。

谢谢你的时间!

html css css3 matrix transformation
1个回答
0
投票

CSS矩阵使用6个值:

matrix(a, b, c, d, tx, ty)

例:

.active{
  transform: matrix(1, 2, -1, 1, 80, 80);
}
© www.soinside.com 2019 - 2024. All rights reserved.