CSS 弹性布局色子的制作_第1页
CSS 弹性布局色子的制作_第2页
CSS 弹性布局色子的制作_第3页
CSS 弹性布局色子的制作_第4页
CSS 弹性布局色子的制作_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

效果截图 CSS 样式及 html 代码如下 CSS 弹性布局 色子 清除系统样式及设置盒子模型 margin 0 padding 0 box sizing border box 背景色 html body background black 清除列表样式 li list style none 容器设置及动画 wrap width 100px height 100px position relative margin 150px auto cube width 100px height 100px background rgb 221 221 221 transform style preserve 3d transform rotateX 30deg rotateY 80deg animation dice 20s infinite animation timing function linear webkit keyframes dice from transform rotateX 0deg rotateY 0deg to transform rotateX 360deg rotateY 360deg 各个面的宽高及样式 cube ul li position absolute width 100px height 100px background lightgray border radius 10px display flex 点的大小及样式 span display block width 20px height 20px background black border radius 10px 设置点数不同颜色 cube ul li nth child 1 span cube ul li nth child 2 span cube ul li nth child 3 span background red cube ul li nth child 4 span cube ul li nth child 5 span cube ul li nth child 6 span background blue 各面的位置设置 cube ul li nth child 1 transform rotateY 0deg translateZ 50px align items center justify content center cube ul li nth child 2 transform translateZ 50px rotateY 180deg flex wrap wrap align items center justify content space around cube ul li nth child 3 transform rotateY 90deg translateZ 50px align items center justify content space between padding 15px cube ul li nth child 4 transform rotateY 90deg translateZ 50px cube ul li nth child 5 transform rotateX 90deg translateZ 50px cube ul li nth child 6 transform rotateX 90deg translateZ 50px 色子点的位置调整 第三点面 cube ul li nth child 3 span nth child 1 align self flex start cube ul li nth child 3 span nth child 3 align self flex end 第四 第五 第六点面 four1 four2 five1 five2 five3 six1 six2 flex gr

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论