修改html

This commit is contained in:
2025-01-09 17:24:56 +08:00
parent eebf4561c9
commit 9583b1c5a4
2 changed files with 28 additions and 6 deletions

View File

@@ -220,7 +220,15 @@
animation: fadeInAndGrow 0.5s forwards; animation: fadeInAndGrow 0.5s forwards;
} }
.font {
display: block;
margin: 0 auto;
font-size: 14px;
color: #006699;
font-weight: bold;
line-height: 22px;
text-align:center;
}
@keyframes fadeInAndGrow { @keyframes fadeInAndGrow {
0% { 0% {
opacity: 0; opacity: 0;

View File

@@ -7659,7 +7659,7 @@ var htmlContent=''
// 判断是否是图片 // 判断是否是图片
if (item.type == 1) { if (item.type == 1) {
var picsrc = 'https://submission.tmrjournals.com/public/mainimg/' + item.image.url; var picsrc = 'https://submission.tmrjournals.com/public/articleImage/' + item.image.url;
var fun = "picPreview('" + picsrc + "');" var fun = "picPreview('" + picsrc + "');"
// console.log(fun) // console.log(fun)
@@ -7671,9 +7671,15 @@ var htmlContent=''
<img src="${picsrc}" onclick="${fun}" style="width: ${ <img src="${picsrc}" onclick="${fun}" style="width: ${
item.width ? `${item.width}px` : '100%' item.width ? `${item.width}px` : '100%'
}" /> }" />
<font class="font" style="width: ${item.width ? `${item.width}px` : '100%'}" >${ <div class="font" style="width: ${item.width ? `${item.width}px` : '100%'};
font-size: 14px;
color: #006699;
font-weight: bold;
line-height: 22px;
text-align:center;" >${
item.image.note ? item.image.note : '' item.image.note ? item.image.note : ''
}</font> }</div>
</p> </p>
`; `;
@@ -7705,11 +7711,19 @@ var htmlContent=''
}) })
.join('')} .join('')}
</table> </table>
<font class="font" style="width:100%" >${item.table.note ? item.table.note : ''}</font> <div class="font" style="width: ${item.width ? `${item.width}px` : '100%'};
font-size: 14px;
color: #006699;
font-weight: bold;
line-height: 22px;
text-align:center;" >${
item.table.note ? item.table.note : ''
}</div>
</div> </div>
`; `;
} else { } else {
contentHtml = `<p class="pMain Ptitle" main-state="${item.state}" contenteditable="false" data-id="${item.am_id}" main-id="${item.am_id}"${item.content}</p>`; contentHtml = `<p class="pMain " main-state="${item.state}" contenteditable="false" data-id="${item.am_id}" main-id="${item.am_id}">${item.content}</p>`;
} }
// 判断是否是表格类型 // 判断是否是表格类型