1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
.styled-text { display: flex; align-items: center; margin-bottom: 20px; } .vertical-line { width: 2px; /* 线的宽度 */ height: 20px; /* 线的高度 */ background-color: black; /* 线的颜色 */ margin-right: 10px; /* 线与文本之间的间距 */ } .text { font-size: 20px; /* 文本大小 */ font-family: Arial, sans-serif; /* 字体样式 */ color: black; /* 文本颜色 */ }