.body { display:flex; flex-direction: column; height: 100vh;/*这里是把标题栏的高度去掉了*/ } ._funcName { text-align: center; font-size: 20px; font-weight: bold; margin: 10px; border-radius: 10px; color:rgba(14, 11, 11, 0.712); background-color: #cdcfcf59; } .warning { flex-grow:1;/*占据body的剩余空间*/ margin: 10px; background-color: #cdcfcf59; border-radius: 15px; padding-left: 10px; padding-right: 10px; padding-bottom: 5px; } .waringimg { display: flex; justify-content: center; /* 水平居中 */ width: 100%; height: auto; } .status-text { font-size:x-small; color:gray; } .blocks { flex-grow:1; } .button { display: flex; flex-direction: row; justify-content: space-around; align-items: center; margin-top:20px; } .circle-btn { border:5px solid #cdcfcf49; width:60px; height: 60px; border-radius: 50%; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: rgba(0, 0, 0, 0.041); } .circle-work { border:5px solid #cdcfcf49; width:100px; height: 100px; border-radius: 50%; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); line-height: 2.5em; color: #0667f8; background-color: rgba(0, 0, 0, 0.041); display: flex; flex-direction: column; align-items: center; justify-content: center; } .progset { display: flex; flex-direction: column; width: 100%; border:1px solid #cdcfcf49; border-radius: 10%; padding-bottom: 10px; padding-top: 15px; background-color: rgba(3, 250, 65, 0.062); } .clock { display:flex; align-items:center; justify-content:space-between; margin-left: 20px; margin-right: 20px; margin-top: 20px; margin-bottom: 20px; }