最近用到了一下随机点名程序,就自己整理一下。代码实现后的截图如下。
随机点名 #content{ width: 600px; height: 400px; background: #000; margin: 100px auto; text-align: center; position: relative; line-height: 300px; color: dodgerblue; font-size: 70px; } #btn1{ background: #ccc; width: 180px; height: 80px; font-size: 30px; color: #f40; border-radius: 12px; position: absolute; bottom: 30px; left: 50%; margin-left: -90px; } 点击开始
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持考高分网。



