.knowledgeFieldCon { position: relative; background: #f6f7fb; height: 100%; padding-top: 4.5rem; display: flex; // 知识园地 .knowledgeField { flex: 1; margin: 2.1875rem; background: #fff; border-radius: 0.25rem; display: flex; flex-direction: column; .knowledgeField-header { height: 4.5rem; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; border-bottom: 0.0625rem solid #ededed; .knowledgeField-header-text { color: #000000; font-family: Microsoft YaHei UI; font-weight: bold; font-size: 20px; line-height: normal; letter-spacing: 0px; } .elInput { width: 25.8125rem; margin-right: 0.8125rem; .elSelect { width: 5rem; } } } .knowledgeField-content { padding: 0 1.5625rem; margin: 1.875rem 0; overflow-y: auto; .knowledgeField-content-item { display: flex; .image { width: 10.1875rem; height: 6.8125rem; margin-right: 1.25rem; } .textContent { width: 100.5rem; div { color: #000000; font-family: Microsoft YaHei UI; font-weight: regular; font-size: 20px; line-height: normal; letter-spacing: 0px; padding-bottom: 0.875rem; } p { color: #7b7b7b; font-family: Microsoft YaHei UI; font-weight: regular; font-size: 16px; height: 2.5rem; line-height: normal; letter-spacing: 0px; display: -webkit-box; /* 必须设置为弹性盒模型 */ -webkit-box-orient: vertical; /* 设置盒子的排列方式为垂直 */ overflow: hidden; /* 隐藏超出的文本 */ -webkit-line-clamp: 2; /* 限制显示2行 */ text-overflow: ellipsis; /* 超出的部分显示省略号 */ margin-bottom: 0.625rem; } span { color: #3396fb; font-family: Microsoft YaHei UI; font-weight: regular; font-size: 16px; line-height: normal; letter-spacing: 0px; cursor: pointer; } } } } .knowledgeField-bottom { padding: 1.5625rem 0; } } // 知识详情 .knowledgeDetails { padding: 1.25rem 2.1875rem; display: flex; justify-content: space-between; position: relative; .returnIcon { position: absolute; left: 4.0625rem; top: 2.8125rem; font-size: 1.5625rem; cursor: pointer; } .returnIcon:hover { color: #3396FB; } .knowledgeDetails-left { width: 92.75rem; background: #fff; display: flex; flex-direction: column; .knowledgeDetails-left-title { color: #000000; font-family: Microsoft YaHei UI; font-weight: bold; font-size: 1.5rem; line-height: normal; letter-spacing: 0px; text-align: center; padding-top: 1.5rem; } .knowledgeDetails-left-con { padding: 0 1.875rem 0.9375rem 1.875rem; display: flex; align-items: center; justify-content: space-between; .distribution { width: 33%; } .timeContent { font-size: 1rem; p { color: #7b7b7b; margin-right: 1rem; } span { color: #000000; } } .readUse { .text { font-size: 1rem; margin-right: 1rem; color: #7b7b7b; } .image { width: 8.8125rem; height: 2.5rem; } } li { font-family: Microsoft YaHei UI; font-weight: regular; font-size: 1rem; line-height: normal; margin-right: 2.0625rem; } .grey { color: #7b7b7b; } .blue { color: #3396fb; } } .hypertextContent { background: #f6f6f6; padding: 1.875rem; overflow-y: auto; margin: 0 1.875rem; flex: 1; font-size: 1rem; } .knowledgeDetails-left-bottom { padding: 1.25rem 0; } } .knowledgeDetails-right { width: 22.625rem; padding-left: 1.875rem; display: flex; flex-direction: column; .latestArticles { width: 100%; height: 20.75rem; background: #fff; margin-bottom: 1.25rem; padding: 1.25rem; } .relatedRecommendations { flex: 1; background: #fff; padding: 1.25rem; } .knowledgeDetails-right-title { display: flex; justify-content: space-between; align-items: center; div { font-size: 1rem; color: #000000; } span { font-size: 0.875rem; color: #3878ff; cursor: pointer; } } .line { width: 100%; height: 1px; background: #ededed; margin: 0.5625rem 0 0.875rem 0; } .latestList { width: 100%; .latestList-item { width: 100%; display: flex; justify-content: space-between; margin-bottom: 1rem; border: 1px solid #fff; cursor: pointer; &:hover { border: 1px solid #409EFF; .latestList-item-text { color: #3396FB; } } &:last-child { margin-bottom: 0; } .latestList-item-image { width: 6.25rem; height: 4.5rem; } .latestList-item-text { width: 11.25rem; font-size: 0.875rem; color: #000000; .data { color: #c7c7c7; text-align: right; } .latestList-item-text-title { line-height: 1.125rem; height: 3.5625rem; display: -webkit-box; /* 必须设置为弹性盒模型 */ -webkit-box-orient: vertical; /* 设置盒子的排列方式为垂直 */ overflow: hidden; /* 隐藏超出的文本 */ -webkit-line-clamp: 3; /* 限制显示2行 */ text-overflow: ellipsis; /* 超出的部分显示省略号 */ } } } } } } .flex1 { flex: 1; } .flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; } img { width: 100%; height: 100%; } .wh100 { width: 100%; height: 100%; } }