HTML连载68

阅读: 评论:0

HTML连载68

HTML连载68

一、 形变中心点介绍

 <style>ul li {width: 100px;height: 100px;list-style: none;float:left;margin:0 auto;/*transform-origin:200px 0px;*/transform-origin:80% 80%;/*第一个参代表水平方向,第二个参数代表垂直方向,注意点:取值有三种形式,具体像素,百分比*/}ul li:nth-child(1){/*默认情况下,所有的元素都是以自己的中心点进行旋转的,我们可以通过改变形变的中心点*/background-color: red;transform:rotate(30deg);}ul li:nth-child(2){background-color: green;transform:rotate(60deg);}ul li:nth-child(3){background-color: blue;transform:rotate(110deg);}........省略代码.......<ul><li></li><li></li><li></li></ul>

 

二、 形变中心轴

 

  

  <style>*{margin:0;padding:0;}ul{width: 800px;height: 500px;border:1px solid black;margin:0 auto;​}ul li {list-style: none;width: 200px;height: 200px;margin:0 auto;margin-top:50px;border:1px solid black;​}ul li image{width: 200px;height: 200px;}ul li:nth-child(1){/*默认情况下所有的元素都是围绕Z轴进行旋转的*/transform:rotateZ(45deg);}ul li:nth-child(2){/*默认情况下所有的元素都是围绕Z轴进行旋Y转的*/transform:rotateX(45deg);}ul li:nth-child(3){/*默认情况下所有的元素都是围绕Z轴进行旋转的*/transform:rotateY(45deg);}/*总结:想要围绕哪个轴旋转,那么只需要在rotate后面加上哪个轴即可*/..........省略代码.......<ul><li><img src="image/play_tennis.jpg" alt=""></li><li><img src="image/play_tennis.jpg" alt=""></li><li><img src="image/play_tennis.jpg" alt=""></li></ul>

三、源码:

D169_ShapeChangePoint.html

D170_RotateAxialDirection.html

地址:

.html

.html

2.CSDN:

3.博客园:/

4.欢迎关注微信公众号:傅里叶变换,个人账号,仅用于技术交流,后台回复“礼包”获取Java大数据学习视频礼包

 

 

本文发布于:2024-01-29 00:12:20,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170645834511313.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:HTML
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23