来看看实现的效果图
游戏规则:双击颜色一样的星星,双击相同的部分就消失了
实例代码
* {margin:0; padding:0;} body {background:#000; width:100%; height:100%;} #box {position:absolute; margin-top:50px;} #star_box {position:relative; } #star_box .star {width:40px; height:40px; position:absolute; cursor:pointer; } #star_box .star img {border-radius:5px;} #star_box .link img {border:2px solid #fff; border-radius:5px;}
总结
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作能带来一定的帮助,如果有疑问大家可以留言交流。谢谢大家对考高分网的支持。



