利用CSS3實現繪制磚塊堆棧小游戲代碼



35 138 47



特效描述:利用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

加群請備注:從官網了解到

老夫子电子 快乐赛车大战破解版 二肖中特期期准 个人网站如何赚钱吗 腾讯广东麻将旧版本1.5.0 11选5任二稳赚玩法 纸牌麻将教学视频 开元游戏官方网站 棋牌 北京pk10安卓软件下载 四川快乐12开奖视频 北京时时彩pc28走势图 北京麻将技巧打法 模拟人生手游 怎样赚钱最快 化州牛腩粉赚钱吗 澳洲pk赛车计划软件 国民彩票充值 青海快三电孑走势图