How to use js to realize a simple lottery system
Today, I would like to share with you how to use js to achieve a simple lottery system related knowledge, detailed content, clear logic, I believe that most people still know too much about this knowledge, so share this article for your reference, I hope you can learn something after reading this article, let's take a look at it.
The effect picture is shown in the figure: byte belt flashes, click start, you can draw a lottery, and the button becomes an end button, and then click the end button, you can end, and the draw is successful.
The code is as follows:
Lucky draw table {width: 400px; height: 400px; border: gray solid 1px; border-collapse: collapse; text-align: center; margin: 0 auto; margin-top: 100px } .td {border: gray solid 1px; background-color: lightskyblue;} .td1 {border: gray solid 1px; background-color: red } td:hover {background-color: cornflowerblue;} div {width: 100px; height: 40px; margin-left: auto; margin-right: auto; margin-top: 20px } # btn {width: 100px; height: 40px;} # blink {width: 300px; height: 90px; margin-left: auto; margin-right: auto; margin-top: 20px Font-size: 70px; font: "Microsoft Acer"; text-align: center; font-weight: bold;} drew the lottery