使用 CSS 实现矩阵变换(另一个方向)
cssweb developmentfront end technology更新于 2024/3/15 4:28:17
您可以尝试运行以下代码,使用 CSS 实现矩阵变换(另一个方向)
示例
<html>
<head>
<style>
div {
width: 300px;
height: 100px;
background-color: pink;
border: 1px solid black;
}
div#myDiv2 {
/* IE 9 */
-ms-transform: matrix(1, 0, 0.5, 1, 150, 0);
/* Safari */
-webkit-transform: matrix(1, 0, 0.5, 1, 150, 0);
/* Standard syntax */
transform: matrix(1, 0, 0.5, 1, 150, 0);
}
</style>
</head>
<body>
<div>
Tutorialspoint.com
</div>
<div id = "myDiv2">
Tutorialspoint.com
</div>
</body>
</html>
输出

相关文章
有用资源
css 参考教程 - 该教程包含有关 css 的更多信息:https://www.cainiaomax.com/css/

