本文实例为大家分享了jQuery实现飞机大战的具体代码,供大家参考,具体内容如下
飞机大战 * { margin: 0px } .container { height: 700px; width: 500px; background-color: black; margin: 5px auto; position: relative; } .plane { height: 80px; width: 80px; background: url(images/plane.png) no-repeat center / 100% 100%; position: absolute; bottom: 10px; left: calc(50% - 40px); } .bullet { height: 10px; width: 5px; border-radius: 45% 45% 0 0; box-shadow: 0px 2px 10px orange; background: gold; position: absolute; } .enemy { height: 34.4px; width: 32.5px; background: url(images/enemy.png) no-repeat center / 100% 100%; transform: rotate(180deg); position: absolute; overflow: hidden; top: 0px; } h2 { height: 40px; display: table; border-color: deepskyblue; border-radius: 5px; background-color: deepskyblue; text-align: center; padding: 5px; position: relative; float: right; right: 300px; } 得分: 0
更多有趣的经典小游戏实现专题,分享给大家:
C++经典小游戏汇总
python经典小游戏汇总
python俄罗斯方块游戏集合
Javascript经典游戏 玩不停
java经典小游戏汇总
javascript经典小游戏汇总
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持考高分网。



