在网页上制作瓷砖照亮顺序中的不同颜色 [英] Making tiles on a web page light up different colours in a sequence
本文介绍了在网页上制作瓷砖照亮顺序中的不同颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个网格的网格。每个瓷砖将代表不同的颜色,但我想知道是否有一种方法,我可以使每个瓷砖以指定的顺序亮起。
I have a page with a grid of tiles. Each tile would represent a different colour but I was wondering if there was a way I could make each tile light up in a specified sequence.
优选地,当页面加载时,指定的图块将显示序列中指定的颜色。
Preferably when the page loads the specified tile would show the colour specified in a sequence.
这是最好的方法是什么?
What is the best method to do this?
感谢
推荐答案
向对象中添加更多的div和数组以获取更多的图块。
效率不高,但有工作!
Add more div and arrays to the object to get more tiles. Not efficient but does the job!
这篇关于在网页上制作瓷砖照亮顺序中的不同颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文