免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
.效果截图:CSS样式及 html 代码如下: CSS弹性布局 色子/*清除系统样式及设置盒子模型*/*margin: 0;padding: 0;box-sizing: border-box;/*背景色*/html,bodybackground: black;/*清除列表样式*/lilist-style: none;/*容器设置及动画*/#wrapwidth: 100px;height: 100px;position: relative;margin: 150px auto;#cubewidth: 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 dicefromtransform: rotateX(0deg) rotateY(0deg);totransform: rotateX(360deg) rotateY(360deg);/*各个面的宽高及样式*/#cube ul liposition: absolute;width: 100px;height: 100px;background: lightgray;border-radius: 10px;display: flex;/*点的大小及样式*/spandisplay: 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) spanbackground: red;#cube ul li:nth-child(4) span,#cube ul li:nth-child(5) span,#cube ul li:nth-child(6) spanbackground: 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,#six2flex-
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 小学六年级体育与健康教学设计:科学管理体重拥抱活力人生
- 小学四年级数学《建构运算秩序-四则混合运算》教学设计
- 小学英语六年级上册Unit2WaystogotoschoolPBLet'stalk教学设计-2
- 2026垃圾分类面试题及答案
- 2026煤矿采煤工面试题及答案
- 2026前端面试题及答案西安
- 2026畜牧养殖面试题及答案
- 医院突发公共卫生事件应急救援预案
- 学校基层党支部查摆问题清单及整改措施
- 轨道探伤系统:智能检测赋能铁路安全轨道探伤系统迈向数字化与自动化新时代
- 人民军队优良传统附有答案
- DL-T5344-2018电力光纤通信工程验收规范
- 限制类技术备案申请书
- GB 20052-2024电力变压器能效限定值及能效等级
- 体育与健康六年级上期教案
- 软件公司绩效考核指标表
- 深入浅出Oracle EBS之OAF学习笔记-Oracle EBS技术文档
- 中学历史 核心素养视阈下的课堂教学 课件
- TCDZX 003-2022 多矿物质营养茶
- 外科学教学课件:胃十二指肠疾病
- LS 8010-2014植物油库设计规范
评论
0/150
提交评论