css3 transform
<!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>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。