html, body { width: 100%; height: 100%; margin: 0; padding: 0; float: left; display: flex; justify-content: space-between; } .left{ width: 60%; height: 99.8%; display: flex; flex-direction: column; } .right{ width: 39%; height: 99.8%; display: flex; flex-direction: column; } .up{ flex: 1; } .down{ flex: 1; display: flex; justify-content: space-between; flex-direction: column; } .title{ width: 46%; height: 9%; background-image: url(../../img/moduleTitle.png); background-repeat: no-repeat; background-size: 85% 100%; display: flex; } .title>span{ align-self: center; color: white; font-size: 16px; margin-left: 8%; } .data{ width: 100%; height: 90%; display: flex; justify-content: space-between; } .data > .data-left{ width: 25%; height: 100%; display: flex; flex-direction: column; } .data > .data-right{ width: 74%; height: 100%; } .data-left > .data-left-up{ width: 100%; height: 50%; display: flex; align-items: center; justify-content: space-between; } .data-left > .data-left-down{ width: 100%; height: 50%; display: flex; align-items: center; justify-content: space-between; } .data-left > .data-left-up > .title{ width: 50%; height: 50%; background-image: url(../../img/googlealarm/cumulativeTotal.png); background-size: contain; background-position: center; } .data-left > .data-left-up > .content{ width: 50%; height: 50%; display: flex; align-content: flex-start; flex-wrap: wrap; } .data-left > .data-left-up > .content>span{ display: block; width: 100%; color: rgba(255,255,255,0.8); } .data-left > .data-left-up > .content>span:nth-child(1){ margin-top: 18%; color: #75FEFF; font-size: 34px; font-weight: 600; } .data-left > .data-left-down > .title{ width: 50%; height: 50%; background-image: url(../../img/securityPrevention/dayWarn.png); background-size: contain; background-position: center; } .data-left > .data-left-down > .content{ width: 50%; height: 50%; } .data-left > .data-left-down > .content>span{ display: block; width: 100%; color: rgba(255,255,255,0.8); } .data-left > .data-left-down > .content>span:nth-child(1){ margin-top: 18%; color: #fb3b00; font-size: 28px; font-weight: 600; } .down > .data > .data-left > .data-left-up > .title{ background-image: url(../../img/securityPrevention/dayWarn.png) !important; } .right > .up{ width: 100%; height: 50%; display: flex; flex-direction: column; } .right > .up > .up-up{ width: 100%; height: 20%; display: flex; justify-content: space-around; } .right > .up > .up-down{ width: 100%; height: 90%; overflow: auto; margin-top: 9%; } .right > .up > .up-up>.title{ width: 21%; background-image: url(../../img/index/interfaceState.png); background-size: contain; background-position: right; } .right > .up > .up-up > div{ height: 100%; display: flex; } .right > .up > .up-up >div>span{ align-self: center; } .right > .up > .up-up >div>span:nth-child(1){ color: white; } .right > .down > .up-up{ width: 100%; height: 15%; display: flex; flex-wrap: wrap; align-content: flex-end; } .right > .down > .up-down{ width: 100%; height: 80%; overflow: auto; } .right > .down > .up-up>.title{ width: 5%; height: 41%; background-image: url(../../img/googlealarm/Group.png); background-size: contain; background-position: left; } .right > .down > .up-up > span{ color: #FFFFFF; font-size: 16px; } .right > .down > .up-up >div:nth-child(3){ width: 5%; height: 41%; background-image: url(../../img/details.png); background-repeat: no-repeat; background-size: 85% 100%; margin-left: 1%; cursor: pointer; } .right > .down > .up-down>div:nth-child(n + 2){ width: 100%; margin-top: 1%; background: url("../../img/index/standardColumn.png") no-repeat; background-size: 100% 100%; height: 12%; display: flex; justify-content: space-around; } .right > .down > .up-down>div:nth-child(n + 2):hover{ background: url("../../img/index/standardColumnHover.png") no-repeat; background-size: 100% 100%; } .right > .down > .up-down>div:nth-child(n + 2)>span{ color: rgba(255,255,255,0.6); align-self: center; width: 33.3%; text-align: center; } .right > .down > .up-down>.tableList{ width: 100%; background: url("../../img/index/title.png") no-repeat; background-size: 100% 100%; margin: 0 auto; /* 设置左右外边距为自动 */ height: 13%; display: flex; justify-content: space-around; } .right > .down > .up-down>.tableList>span{ color: rgba(255,255,255,0.8); align-self: center; width: 33.3%; text-align: center; } .right > .down{ width: 93%; margin-left: auto; margin-right: auto; } ::-webkit-scrollbar { width: 10px; /*对垂直流动条有效*/ height: 10px; /*对水平流动条有效*/ }