利用CSS3实现绘制砖块堆栈小游戏代码



37 146 49



特效描述:利用CSS3实现 绘制砖块 堆栈小游戏 代码,利用CSS3实现绘制砖块堆栈小游戏代码

代码结构

1. HTML代码

<form class="screen" novalidate>
  <input id="start" type="checkbox" tabindex="-1">
  <input id="end" type="checkbox" tabindex="-1">
  <input id="last" type="checkbox" tabindex="-1">
  <div class="sky">
    <div></div>
    <div></div>
  </div>
  <div class="base">
    <input type="checkbox" tabindex="-1" required>
    <div class="container horizontal">
      <div class="block floating horizontal"></div>
      <div class="block horizontal">
        <input type="checkbox" tabindex="-1">
        <div class="container vertical">
          <div class="block floating vertical"></div>
          <div class="block vertical">
            <input type="checkbox" tabindex="-1">
            <div class="container horizontal">
              <div class="block floating horizontal"></div>
              <div class="block horizontal">
                <input type="checkbox" tabindex="-1">
                <div class="container vertical">
                  <div class="block floating vertical"></div>
                  <div class="block vertical">
                    <input type="checkbox" tabindex="-1">
                    <div class="container horizontal">
                      <div class="block floating horizontal"></div>
                      <div class="block horizontal">
                        <input type="checkbox" tabindex="-1">
                        <div class="container vertical">
                          <div class="block floating vertical"></div>
                          <div class="block vertical">
                            <input type="checkbox" tabindex="-1">
                            <div class="container horizontal">
                              <div class="block floating horizontal"></div>
                              <div class="block horizontal">
                                <input type="checkbox" tabindex="-1">
                                <div class="container vertical">
                                  <div class="block floating vertical"></div>
                                  <div class="block vertical">
                                    <input type="checkbox" tabindex="-1">
                                    <div class="container horizontal">
                                      <div class="block floating horizontal"></div>
                                      <div class="block horizontal">
                                        <input type="checkbox" tabindex="-1">
                                        <div class="container vertical">
                                          <div class="block floating vertical"></div>
                                          <div class="block vertical">
                                            <input type="checkbox" tabindex="-1">
                                            <div class="container horizontal">
                                              <div class="block floating horizontal"></div>
                                              <div class="block horizontal">
                                                <input type="checkbox" tabindex="-1">
                                                <div class="container vertical">
                                                  <div class="block floating vertical"></div>
                                                  <div class="block vertical">
                                                    <input type="checkbox" tabindex="-1">
                                                    <div class="container horizontal">
                                                      <div class="block floating horizontal"></div>
                                                      <div class="block horizontal">
                                                        <input type="checkbox" tabindex="-1">
                                                        <div class="container vertical">
                                                          <div class="block floating vertical"></div>
                                                          <div class="block vertical">
                                                            <input type="checkbox" tabindex="-1">
                                                            <div class="container horizontal">
                                                              <div class="block floating horizontal"></div>
                                                              <div class="block horizontal">
                                                                <input type="checkbox" tabindex="-1">
                                                                <div class="container vertical">
                                                                  <div class="block floating vertical"></div>
                                                                  <div class="block vertical">
                                                                    <input type="checkbox" tabindex="-1">
                                                                    <div class="container horizontal">
                                                                      <div class="block floating horizontal"></div>
                                                                      <div class="block horizontal">
                                                                        <input type="checkbox" tabindex="-1">
                                                                        <div class="container vertical">
                                                                          <div class="block floating vertical"></div>
                                                                          <div class="block vertical">
                                                                            <input type="checkbox" tabindex="-1">
                                                                            <div class="container horizontal">
                                                                              <div class="block floating horizontal"></div>
                                                                              <div class="block horizontal">
                                                                                <input type="checkbox" tabindex="-1">
                                                                                <div class="container vertical">
                                                                                  <div class="block floating vertical"></div>
                                                                                  <div class="block vertical">
                                                                                    <input type="checkbox" tabindex="-1">
                                                                                    <div class="container horizontal">
                                                                                      <div class="block floating horizontal"></div>
                                                                                      <div class="block horizontal">
                                                                                        <input type="checkbox" tabindex="-1">
                                                                                        <div class="container vertical">
                                                                                          <div class="block floating vertical"></div>
                                                                                          <div class="block vertical">
                                                                                            <input type="checkbox" tabindex="-1">
                                                                                            <div class="container horizontal">
                                                                                              <div class="block floating horizontal"></div>
                                                                                              <div class="block horizontal">
                                                                                                <input type="checkbox" tabindex="-1">
                                                                                                <div class="container vertical">
                                                                                                  <div class="block floating vertical"></div>
                                                                                                  <div class="block vertical">
                                                                                                    <input type="checkbox" tabindex="-1">
                                                                                                    <div class="container horizontal">
                                                                                                      <div class="block floating horizontal"></div>
                                                                                                      <div class="block horizontal">
                                                                                                        <input type="checkbox" tabindex="-1">
                                                                                                        <div class="container vertical">
                                                                                                          <div class="block floating vertical"></div>
                                                                                                          <div class="block vertical">
                                                                                                            <input type="checkbox" tabindex="-1">
                                                                                                            <div class="container horizontal">
                                                                                                              <div class="block floating horizontal"></div>
                                                                                                              <div class="block horizontal">
                                                                                                                <input type="checkbox" tabindex="-1">
                                                                                                                <div class="container vertical">
                                                                                                                  <div class="block floating vertical"></div>
                                                                                                                  <div class="block vertical">
                                                                                                                    <input type="checkbox" tabindex="-1">
                                                                                                                    <div class="container horizontal">
                                                                                                                      <div class="block floating horizontal"></div>
                                                                                                                      <div class="block horizontal">
                                                                                                                        <input type="checkbox" tabindex="-1">
                                                                                                                        <div class="container vertical">
                                                                                                                          <div class="block floating vertical"></div>
                                                                                                                          <div class="block vertical">
                                                                                                                            <input type="checkbox" tabindex="-1">
                                                                                                                            <div class="container horizontal">
                                                                                                                              <div class="block floating horizontal"></div>
                                                                                                                              <div class="block horizontal">
                                                                                                                                <input type="checkbox" tabindex="-1">
                                                                                                                                <div class="container vertical">
                                                                                                                                  <div class="block floating vertical"></div>
                                                                                                                                  <div class="block vertical">
                                                                                                                                    <input type="checkbox" tabindex="-1">
                                                                                                                                    <div class="container horizontal">
                                                                                                                                      <div class="block floating horizontal"></div>
                                                                                                                                      <div class="block horizontal">
                                                                                                                                        <input type="checkbox" tabindex="-1">
                                                                                                                                        <div class="container vertical">
                                                                                                                                          <div class="block floating vertical"></div>
                                                                                                                                          <div class="block vertical">
                                                                                                                                            <input type="checkbox" tabindex="-1">
                                                                                                                                            <div class="container horizontal">
                                                                                                                                              <div class="block floating horizontal"></div>
                                                                                                                                              <div class="block horizontal">
                                                                                                                                                <input type="checkbox" tabindex="-1">
                                                                                                                                                <div class="container vertical">
                                                                                                                                                  <div class="block floating vertical"></div>
                                                                                                                                                  <div class="block vertical">
                                                                                                                                                    <input type="checkbox" tabindex="-1">
                                                                                                                                                    <div class="container horizontal">
                                                                                                                                                      <div class="block floating horizontal"></div>
                                                                                                                                                      <div class="block horizontal">
                                                                                                                                                        <input type="checkbox" tabindex="-1">
                                                                                                                                                        <div class="container vertical">
                                                                                                                                                          <div class="block floating vertical"></div>
                                                                                                                                                          <div class="block vertical">
                                                                                                                                                            <input type="checkbox" tabindex="-1">
                                                                                                                                                            <div class="container horizontal">
                                                                                                                                                              <div class="block floating horizontal"></div>
                                                                                                                                                              <div class="block horizontal">
                                                                                                                                                                <input type="checkbox" tabindex="-1">
                                                                                                                                                                <div class="container vertical">
                                                                                                                                                                  <div class="block floating vertical"></div>
                                                                                                                                                                  <div class="block vertical">
                                                                                                                                                                    <input type="checkbox" tabindex="-1">
                                                                                                                                                                    <div class="container horizontal">
                                                                                                                                                                      <div class="block floating horizontal"></div>
                                                                                                                                                                      <div class="block horizontal">
                                                                                                                                                                        <input type="checkbox" tabindex="-1">
                                                                                                                                                                        <div class="container vertical">
                                                                                                                                                                          <div class="block floating vertical"></div>
                                                                                                                                                                          <div class="block vertical">
                                                                                                                                                                            <input type="checkbox" tabindex="-1">
                                                                                                                                                                            <div class="container horizontal">
                                                                                                                                                                              <div class="block floating horizontal"></div>
                                                                                                                                                                              <div class="block horizontal">
                                                                                                                                                                                <input type="checkbox" tabindex="-1">
                                                                                                                                                                                <div class="container vertical">
                                                                                                                                                                                  <div class="block floating vertical"></div>
                                                                                                                                                                                  <div class="block vertical">
                                                                                                                                                                                    <input type="checkbox" tabindex="-1">
                                                                                                                                                                                    <div class="container horizontal">
                                                                                                                                                                                      <div class="block floating horizontal"></div>
                                                                                                                                                                                      <div class="block horizontal">
                                                                                                                                                                                        <input type="checkbox" tabindex="-1">
                                                                                                                                                                                        <div class="container vertical">
                                                                                                                                                                                          <div class="block floating vertical"></div>
                                                                                                                                                                                          <div class="block vertical">
                                                                                                                                                                                            <input type="checkbox" tabindex="-1">
                                                                                                                                                                                            <div class="container horizontal">
                                                                                                                                                                                              <div class="block floating horizontal"></div>
                                                                                                                                                                                              <div class="block horizontal">
                                                                                                                                                                                                <input type="checkbox" tabindex="-1">
                                                                                                                                                                                                <div class="container vertical">
                                                                                                                                                                                                  <div class="block floating vertical"></div>
                                                                                                                                                                                                  <div class="block vertical">
                                                                                                                                                                                                    <input type="checkbox" tabindex="-1">
                                                                                                                                                                                                    <div class="container horizontal">
                                                                                                                                                                                                      <div class="block floating horizontal"></div>
                                                                                                                                                                                                      <div class="block horizontal">
                                                                                                                                                                                                        <label class="last" for="last" tabindex="-1"></label>
                                                                                                                                                                                                        <div class="container vertical">
                                                                                                                                                                                                          <div class="block floating vertical"></div>
                                                                                                                                                                                                          <div class="block vertical">
                                                                                                                                                                                                            <label class="end horizontal" for="end"></label>
                                                                                                                                                                                                            <label class="end vertical" for="end"></label>
                                                                                                                                                                                                          </div>
                                                                                                                                                                                                        </div>
                                                                                                                                                                                                      </div>
                                                                                                                                                                                                    </div>
                                                                                                                                                                                                  </div>
                                                                                                                                                                                                </div>
                                                                                                                                                                                              </div>
                                                                                                                                                                                            </div>
                                                                                                                                                                                          </div>
                                                                                                                                                                                        </div>
                                                                                                                                                                                      </div>
                                                                                                                                                                                    </div>
                                                                                                                                                                                  </div>
                                                                                                                                                                                </div>
                                                                                                                                                                              </div>
                                                                                                                                                                            </div>
                                                                                                                                                                          </div>
                                                                                                                                                                        </div>
                                                                                                                                                                      </div>
                                                                                                                                                                    </div>
                                                                                                                                                                  </div>
                                                                                                                                                                </div>
                                                                                                                                                              </div>
                                                                                                                                                            </div>
                                                                                                                                                          </div>
                                                                                                                                                        </div>
                                                                                                                                                      </div>
                                                                                                                                                    </div>
                                                                                                                                                  </div>
                                                                                                                                                </div>
                                                                                                                                              </div>
                                                                                                                                            </div>
                                                                                                                                          </div>
                                                                                                                                        </div>
                                                                                                                                      </div>
                                                                                                                                    </div>
                                                                                                                                  </div>
                                                                                                                                </div>
                                                                                                                              </div>
                                                                                                                            </div>
                                                                                                                          </div>
                                                                                                                        </div>
                                                                                                                      </div>
                                                                                                                    </div>
                                                                                                                  </div>
                                                                                                                </div>
                                                                                                              </div>
                                                                                                            </div>
                                                                                                          </div>
                                                                                                        </div>
                                                                                                      </div>
                                                                                                    </div>
                                                                                                  </div>
                                                                                                </div>
                                                                                              </div>
                                                                                            </div>
                                                                                          </div>
                                                                                        </div>
                                                                                      </div>
                                                                                    </div>
                                                                                  </div>
                                                                                </div>
                                                                              </div>
                                                                            </div>
                                                                          </div>
                                                                        </div>
                                                                      </div>
                                                                    </div>
                                                                  </div>
                                                                </div>
                                                              </div>
                                                            </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="points"></div>
  <label class="start" for="start" tabindex="-1">
        PURE CSS<br>STACK
    </label>
  <button type="reset" tabindex="-1">
        CLICK OR TAP<br>
        TO RESTART
    </button>
</form>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';color:#ffffff">
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 小游戏 H5游戏 游戏源码 手机游戏 微信游戏 网页游戏 其他游戏 其他h5游戏 其他h5源码游戏

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到