2d变换(1)

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css" media="screen">
		.box{
			width: 200px;
			height: 50px;
			border: 1px solid red;
			display: inline-block;
			/* X方向 放大两倍 Y方向放大2倍 */
			transform: scaleX(2) scaleY(2);
			transform-origin:0 0;
			
			/*2d变换不影响其他,不会占据其他位置*/
		}
	</style>
</head>
<body>
	<div class="box">测试</div>
</body>
</html>

猜你喜欢

转载自blog.csdn.net/qq_34608447/article/details/89638031
2D