Javascript 21点居中并放大较小屏幕 嗨,每个人都在试图让我的二十一点游戏集中在屏幕上的智能手机和平板电脑上。 但它不起作用,有什么建议吗 我想把一切都放在中间,把一切都变大。 在较小的视口中看起来更好

Javascript 21点居中并放大较小屏幕 嗨,每个人都在试图让我的二十一点游戏集中在屏幕上的智能手机和平板电脑上。 但它不起作用,有什么建议吗 我想把一切都放在中间,把一切都变大。 在较小的视口中看起来更好,javascript,css,bootstrap-4,blackjack,Javascript,Css,Bootstrap 4,Blackjack,下面是css和html body{ display:block; background-image: url("../img/Table2.jpg"); background-color: #cccccc; background-repeat:no-repeat; height: 100%; background-position: center; background-size: cover; background-repeat: r

下面是css和html

    body{
  display:block;
  background-image: url("../img/Table2.jpg");
  background-color: #cccccc;
  background-repeat:no-repeat;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: repeat;
  
}
header>h1{
  font-size: 60px;
}

h1{
  color: white;
  font-family: 'Rye', cursive;
}

.icon{
  height: 20px;
  width: 20px;
  color: white;
}


@media only screen and (max-width: 600px){
/*Big smartphones [426px -> 600px]*/
body{
  zoom:130%
}
}


<!DOCTYPE html>
<html>

  <head>
    <meta charset="UTF-8">
    <script src="js/blackjack_object.js"></script>
    <script src="js/blackjack_manager.js"></script>
    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <title>BlackJack</title>
  </head>

  <body>
    <header class="text-center">
      <h1>BLACKJACK</h1>
    </header>

    <section id="game">
      <div class="container-fluid">
          <h1 class="text-center">Dealer</h1>

          <p class="text-center" id="dealer"></p>
          <h1 class="text-center">Player</h1>
          <p class="text-center" id="player"></p>
      </div>


      <div class="container-fluid">
        <div class="row">
          <p class="col-0 col-sm-0 col-md-0 col-lg-4 col-xl-4"></p>
          <div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-4 text-center">
            <button id="card" type="button" class="btn btn-light  btn-lg mr-3" onclick="player_new_card()" >Draw Card</button>
            <button id="stand" type="button" class="btn btn-light  btn-lg mr-3" onclick="dealer_finish()">Stand</button>
            <button id="new_game" type="button" class="btn btn-light  btn-lg mr-3" onclick="new_game()"  disabled>New Game</button>
          </div>
          <p class="col-2 col-sm-2 col-md-2 col-lg-4 col-xl-4"></p>
        </div>
      </div>
    </section>
  
    <section>
      <script> window.onload = new_game() </script>
    </section>
    <footer></footer>
  </body>

</html> 
正文{
显示:块;
背景图片:url(“../img/Table2.jpg”);
背景色:#中交;
背景重复:无重复;
身高:100%;
背景位置:中心;
背景尺寸:封面;
背景重复:重复;
}
标题>h1{
字体大小:60px;
}
h1{
颜色:白色;
字体系列:“黑麦”,草书;
}
.图标{
高度:20px;
宽度:20px;
颜色:白色;
}
@仅介质屏幕和(最大宽度:600px){
/*大型智能手机[426px->600px]*/
身体{
缩放:130%
}
}
21点
21点
经销商

玩家

抽牌 站 新游戏

window.onload=new_game()
谢谢您的帮助