.khjz-text{ height: 100%; background-color: aliceblue; display: flex; flex-direction: column; justify-content: center; align-content: center; padding: 0 1.6rem; } .khjz-text p{ font-size: 0.8rem; } .khjz-text p:nth-child(1){ margin: 16px; padding-left: 16px; border-left: 4px solid rgba(51, 142, 245, 1); } .khjz-text p:nth-child(2){ margin: 16px; padding-left: 16px; border-left: 4px solid rgba(255, 195, 0, 1); } .khjz-text p:nth-child(3){ margin: 16px; padding-left: 16px; border-left: 4px solid rgba(0, 186, 173, 1); } .khjz-text p:nth-child(4){ margin: 16px; padding-left: 16px; border-left: 4px solid rgba(18, 208, 255, 1); } .khjz-text p:nth-child(5){ margin: 16px; padding-left: 16px; border-left: 4px solid rgba(7, 108, 224, 1); }