English 中文(简体)
CSS 矩阵表 D. 变革
原标题:CSS Matrix3D transform
  • 时间:2012-01-14 10:52:15
  •  标签:
  • css
  • html

我在利用RotateX在这个骗子里创造了3D效应:

http://jsfiddle.net/vEWEL/11/"rel=“nofollow”> http://jsfiddle.net/vEWEL/11/

然而,我不敢肯定,如何在这一菲德dle实现对红广场的同样影响:

http://jsfiddle.net/paulsidebottom/jbfSj/

What Matrix3D transform do I need to apply to the marker to get it to stand up in the vertical plane?

最佳回答

通过检查第一个例子,然后看一下网络检查员的计算表,你可以看到矩阵中第一个例子:

-webkit-transform: matrix3d(1, 0, 0, 0,
                            0, 0.5000000000000001, -0.8660254037844386, 0, 0,
                            0.8660254037844386, 0.5000000000000001, 0,
                            0, 0, 0, 1);

这一点似乎在你的第二个例子中起作用,但这可能是因为你的法典存在其他差异。

之所以采用这一方法,是因为X轴心中的轮换矩阵类似:

[1,0,0,0],
[0,cos(a), sin(-a), 0],
[0,sin(a), cos( a), 0],
[0,0,0,1]

在您的案例中,60度为π/3. 宇宙(π/3)=0.5,而 sin(π/3) = sqrt(3)/2=0.866025。

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签