对于10年前的人来说,扫雷肯定是家喻户晓,由于当时的科技并不是很发达,大家对于电脑游戏的了解,可能都是从扫雷开始的,今天就交大家一种用js原生代码写一个简单的扫雷游戏,话不多说,直接上干货:
document *{ margin: 0; padding: 0; } li{ list-style: none; } .box{ border: 1px solid #666; position: fixed; width: 300px; height: 350px; top: 0; right: 0; bottom: 0; left: 0; margin: auto; } .btn-group{ display: flex; height: 50px; line-height: 50px; text-align: center; justify-content: space-evenly; font-size: 12px; } .row{ height: 30px; line-height: 30px; text-align: center; display: flex; } .col{ flex-shrink: 0; flex-grow: 0; width: 30px; height: 30px; border: 1px solid #666; background-color: #ccc; box-sizing: border-box; } 时间 000 剩余雷数 10 开始 重开
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持考高分网。



