From deb700e3b44878e67d1d4ed2df1649f5cb083a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=91=AB?= <7176466@qq.com> Date: Sat, 20 Aug 2022 23:34:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B8=AE=E5=8A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 4 +++- public/style.css | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 8dee386..b827699 100644 --- a/public/index.html +++ b/public/index.html @@ -6,10 +6,11 @@ - 包剪锤 + 石头、剪刀、布 +

石头、剪刀、布

玩家甲
@@ -22,6 +23,7 @@
玩家乙
+

S出剪刀 D出石头 F出布 点击自己的名字可以改名

diff --git a/public/style.css b/public/style.css index 507e20a..731c761 100644 --- a/public/style.css +++ b/public/style.css @@ -8,11 +8,16 @@ body { width: 100%; height: 100vh; display: flex; + flex-direction: column; justify-content: center; align-items: center; user-select: none; } +#game { + margin: 20px 0; +} + #game, #player1, #player2 { @@ -20,6 +25,12 @@ body { gap: 10px; } +kbd { + padding: 4px 8px; + border: 1px solid #777; + border-radius: 0.25rem; +} + .score, .shape { min-width: 200px;