style.css 858 字节
Newer Older
6
62ba7085b5587201978beaa0 已提交
1 2
html,
body {
3 4
  height: 100%;
  width: 100%;
6
62ba7085b5587201978beaa0 已提交
5 6 7 8
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
6
64104061f23fda247c679fa8 已提交
9
}
10

6
62ba7085b5587201978beaa0 已提交
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
button {
  font-size: 3rem;
  margin: 10px;
  padding: 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

button:hover {
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
}

#scissors {
  background-color: #f5f5f5;
  color: #555;
}

#rock {
  background-color: #e74c3c;
  color: white;
}

#paper {
  background-color: #3498db;
  color: white;
}


#result {
  font-size: 2rem;
  margin: 10px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}



#players{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 80%;
}



#choices{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 80%;
65
}