页面自适应 在html中进行页面自适应 在head中加入下面代码 <script> if (window.innerWidth <= 600) { let html = document.getElementsByTagName('html')[0