HTML5 3D魔方旋转拼图代码

 时间:2024-10-13 05:29:13

1、准备好需要用到的图标。

HTML5 3D魔方旋转拼图代码

2、新建html文档。

HTML5 3D魔方旋转拼图代码

3、书写hmtl代艨位雅剖码。<div class="body-wrapper">稆糨孝汶;<div class="cubetwo-help-component"><div class="cubetwo-row"> <div class="cubetwo-device-info"> <i class="material-icons">touch_app</i> <div>tap or swipe with fingers</div> </div> <div class="cubetwo-device-info"> <i class="material-icons">mouse</i> <div>click or swipe with mouse</div> </div> <div class="cubetwo-device-info cubetwo-device-info--keyboard"> <i class="material-icons">keyboard</i> <div>keyboard keys</div> <div class="cubetwo-device-info-groups"> <div class="cubetwo-device-info-group"> <div> <i class="material-icons">keyboard_tab</i> <i class="material-icons">keyboard_arrow_up</i> </div> <div> <i class="material-icons">keyboard_arrow_left</i> <i class="material-icons">keyboard_arrow_down</i> <i class="material-icons">keyboard_arrow_right</i> </div> </div> <div class="cubetwo-device-info-group"> <div> <span>q</span> <span>w</span> <span>e</span> </div> <div> <span>a</span> <span>s</span> <span>d</span> </div> <div> <span>x</span> <span>y</span> <span>z</span> </div> </div> </div> </div></div>

HTML5 3D魔方旋转拼图代码

4、书写css代码。*,:after,:before { box-sizing: border-box}a荑樊综鲶,button { -we bkit-tap-highlight-color: transparent; cursor: pointer}button { margin: 0; padding: 4px; background: #111; border: 1px solid #add8e6; border: 0; color: #add8e6; box-shadow: 2px 2px 4px gray; outline: none; transition: background .2s; border-radius: 0; font-size: 0; box-shadow: none; background: transparent; border-radius: 50%}button:focus { box-shadow: 2px 2px 1rem #add8e6}button.cubetwo-active { background: hsla(0, 0%, 100%, .2)}

HTML5 3D魔方旋转拼图代码

5、书写并添加js代码。<script src='js/hammer.min.js'></script><script src="js/index.js"></script>

HTML5 3D魔方旋转拼图代码

6、代码整体结构。

HTML5 3D魔方旋转拼图代码

7、查看效果。

HTML5 3D魔方旋转拼图代码
  • 植物大战僵尸神射手植物是哪些与家族玩法攻略
  • 怎样把废纸变成现金收入?
  • 逃出宫殿游戏攻略
  • 如何用热熔胶和油皮纸自制可爱手机壳?
  • 幼儿折纸之章鱼哥怎么折
  • 热门搜索
    防地震手抄报内容 感恩节手抄报图片大全 森林防火手抄报图片 对联手抄报 体育节手抄报 我心中的红十字手抄报 六年级手抄报图片 关爱教育手抄报 成长足迹手抄报内容 文化手抄报