js+css实现简单与电脑做石头剪刀布游戏代码

代码语言:html

所属分类:其他

代码描述:js+css实现简单与电脑做石头剪刀布游戏代码

代码标签: js css 简单 电脑 石头 剪刀 游戏 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  


  
  
<style>
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,400i,700");
/*Color Variables*/
/*Base*/
/* GLOBAL */
/* SELECTIONS */
/* BUTTON */
/* RESULTS */
body {
  height: 100vh;
  width: 100vw;
  margin: 0;
  display: grid;
  place-content: center;
  background: #ffbe0b;
  font-family: "Montserrat", sans-serif;
}
body .selections {
  display: grid;
  grid-template-columns: repeat(3, auto);
}
body .selections .option {
  padding: 0.75rem;
  margin: 0.5rem 1rem;
  display: grid;
  place-content: center;
  font-size: 4rem;
  border: 1px solid #ffbe0b;
  border-radius: 5px;
  background-color: #ffbe0b;
  transition: all 250ms ease-in-out;
}
body .selections .option input {
  display: none;
}
body .selections .option label {
  color: white;
}
body .selections .option input:checked + label {
  color: #ffbe0b;
}
body .selections .option label span {
  display: none;
  font-size: 1rem;
  text-align: center;
}
body .selections .option:has(input:checked) {
  background-color: #ff006e;
}
bo.........完整代码请登录后点击上方下载按钮下载查看

网友评论0