码迷,mamicode.com
首页 > Web开发 > 详细

css3 transform

时间:2015-01-08 21:39:44      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:html5   css3   matrix   


<!DOCTYPE html>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
div{
margin: 30px 0px 80px;
width: 200px;
height: 50px;
font-size: 18px;
font-weight: bold;
background: none repeat scroll 0% 0% #DEE4EE;
color: #305999;
text-align: center;
line-height: 50px;
}
.a1:hover{
 transform: scale(0.5);
}
.a2{
 transform: translate(40px,0px);
}
.a3{
transform:rotate(600deg);
}
.a4{
transform:skew(10deg,2deg);
}
.a5{
transform:matrix(1.678,-0.256,1.522,2.333,-51.533,-1.989);
}
.a6{
transform:rotate(45deg);
transform-origin:10% 10%;
}
</style>
<script type="text/javascript"></script>
</HEAD>

<BODY>
	<div  class='a1'>transform scale缩小</div>
	<div  class='a2'>transform translate:x,y方向移动</div>
	<div  class='a3'>transform rotate :旋转</div>
	<div  class='a4'>transform skew:斜切</div>
	<div class='a5'>transform matrix</div>
	<div style='border:1px solid #FF0000;'>
		<div class='a6'>transform origin</div>
	</div>
</BODY>
</HTML>


matrix


css3 transform

标签:html5   css3   matrix   

原文地址:http://blog.csdn.net/ztt_1119/article/details/42529455

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!