Appearance
translate3d() 函数用于定义 3D 平移。
translate3d(<tx>, <ty>, <tz>);
/* 3D 平移 */ .transform { transform: translate3d(50px, 30px, 100px); } /* 使用 calc() */ .transform { transform: translate3d(calc(50% + 20px), calc(30vh - 10px), 100px); }