简体   繁体   中英

how to create a crossword style grid / large number of divs or other?

so I need to have a grid on screen in a web browser / mobile devices that each grid item holds 1 letter.

A bit like a crossword puzzle, but using most of the screen Doing it using div's seems to be to hard as the performance isn't great to support creating a screen full of 1000's of divs as you can fit a lot of text on screen so a lot of divs.

Any suggestions as a way to achieve this text / grid layout?

If you can use HTML 5 Canvas this will maybe help you:

http://www.html5rocks.com/en/tutorials/casestudies/wordico/

<table>

看起来很明显,但是。

I like this as a grid creator . You would still have to create the vertical height. Probably with some class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM