hpm停刊

This commit is contained in:
2026-06-04 09:04:33 +08:00
parent 558d840981
commit 7db05d88ab
5 changed files with 248 additions and 36 deletions

View File

@@ -36,31 +36,31 @@ function commonHomePage() {
}
.jour_base_info_center{
width: 22.5%;
width: 32% !important;
display:flex;
justify-content: space-between;
align-items: flex-start;
padding-top: 10px;
padding-bottom: 10px;
}
.jour_base_info_center:nth-child(1){
width: 27%;
}
.jour_base_info_center:nth-child(3){
width: 25%;
}
.jour_base_info_center:nth-child(4){
width: 24%;
}
.jour_base_info_center:nth-child(5){
// width: 27%;
}
.jour_base_info_center:nth-child(7){
width: 25%;
}
.jour_base_info_center:nth-child(8){
width: 24%;
}
// .jour_base_info_center:nth-child(1){
// width: 27%;
// }
// .jour_base_info_center:nth-child(3){
// width: 25%;
// }
// .jour_base_info_center:nth-child(4){
// width: 24%;
// }
// .jour_base_info_center:nth-child(5){
// // width: 27%;
// }
// .jour_base_info_center:nth-child(7){
// width: 25%;
// }
// .jour_base_info_center:nth-child(8){
// width: 24%;
// }
.jour_base_info_title{
color: #222;
@@ -239,19 +239,19 @@ function commonHomePage() {
if (arr[i].title != 'tmRxiv') {
// --- 修改点 1: 在第一项(i=0)开始前,先拼接父容器的开头 ---
if (i === 0) {
str += `<div style="width: 100%; display: flex; align-items: center; margin-left: 96px;">`;
}
// if (i === 0) {
// str += `<div style="width: 100%; display: flex; align-items: center; margin-left: 96px;">`;
// }
// --- 修改点 2: 针对前三个元素设置不同的 inline-style ---
let specificStyle = "";
if (i === 0) {
specificStyle = "width: 30%;";
} else if (i === 1) {
specificStyle = "width: 34%; margin-left: 16px;";
} else if (i === 2) {
specificStyle = "width: 26%; margin-left: 24px;";
}
// if (i === 0) {
// specificStyle = "width: 30%;";
// } else if (i === 1) {
// specificStyle = "width: 34%; margin-left: 16px;";
// } else if (i === 2) {
// specificStyle = "width: 26%; margin-left: 24px;";
// }
str += `
<div class="jour_base_info_center"
@@ -289,9 +289,9 @@ if (arr[i].title != 'tmRxiv') {
</div>`;
// --- 修改点 3: 在第三项(i=2)渲染完成后,闭合父容器 ---
if (i === 2) {
str += `</div>`;
}
// if (i === 2) {
// str += `</div>`;
// }
}
}
$('.es_jour').html(`