Home >Web Front-end >HTML Tutorial >Beginner, a Tetris problem written in js_html/css_WEB-ITnose

Beginner, a Tetris problem written in js_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:24:181201browse

This post was last edited by ontseason on 2013-09-28 10:22:03

Tetris source code js

Source code address: http://paste.pound-python.org /show/A12fE3qDjeauUD3edlcT/

Rookie. . I don’t understand the getTable() function return document.getElementById("area");
I can’t even see where the element with id=area is....

Reply to the discussion ( Solution)

//Create table td filled div based on the number of HorizontalNum, VerticalNum, create a table area of ​​HorizontalNum * VerticalNum var table = document.createElement("table");
table .id="area";

is generally searched and rarely used

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn