다음 코드를 실행하여 CSS를 사용하여 행렬 변환으로 div를 회전할 수 있습니다.
예시
<html>
<head>
<style>
div {
width: 300px;
height: 100px;
background-color: pink;
border: 1px solid black;
}
div#myDiv1 {
/* IE 9 */
-ms-transform: matrix(1, -0.3, 0, 1, 0, 0);
/* Safari */
-webkit-transform: matrix(1, -0.3, 0, 1, 0, 0);
/* Standard syntax */
transform: matrix(1, -0.3, 0, 1, 0, 0);
}
</style>
</head>
<body>
<div>
Welcome to my website.
</div>
<div id = "myDiv1">
Welcome to my website.
</div>
</body>
</html> 출력
