|
@@ -52,7 +52,7 @@
|
|
|
--question-gap: 6px;
|
|
--question-gap: 6px;
|
|
|
}
|
|
}
|
|
|
body {
|
|
body {
|
|
|
- font-family: "SimSun", "Songti SC", serif; /* 宋体,适合试卷 */
|
|
|
|
|
|
|
+ font-family: "Noto Serif", "Noto Serif CJK SC", "Noto Sans CJK SC", "Noto Sans", "STSongti-SC", "PingFang SC", "Songti SC", serif;
|
|
|
line-height: 1.65;
|
|
line-height: 1.65;
|
|
|
color: #000;
|
|
color: #000;
|
|
|
background: #fff;
|
|
background: #fff;
|
|
@@ -132,8 +132,8 @@
|
|
|
align-items: flex-start;
|
|
align-items: flex-start;
|
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
- line-height: 1.6;
|
|
|
|
|
- margin-top: 2px;
|
|
|
|
|
|
|
+ line-height: 1.65;
|
|
|
|
|
+ margin-top: 1px;
|
|
|
}
|
|
}
|
|
|
.question-lead.spacer { visibility: hidden; }
|
|
.question-lead.spacer { visibility: hidden; }
|
|
|
.question-number { white-space: nowrap; margin-right: 2px; }
|
|
.question-number { white-space: nowrap; margin-right: 2px; }
|
|
@@ -301,9 +301,10 @@
|
|
|
}
|
|
}
|
|
|
/* 优化SVG中文字标签的显示 */
|
|
/* 优化SVG中文字标签的显示 */
|
|
|
svg text {
|
|
svg text {
|
|
|
- font-family: "SimSun", "Times New Roman", serif !important;
|
|
|
|
|
- font-size: 12px;
|
|
|
|
|
|
|
+ font-family: "Noto Serif", "Noto Serif CJK SC", "Noto Sans CJK SC", "Noto Sans", "STSongti-SC", "PingFang SC", "Songti SC", serif !important;
|
|
|
|
|
+ font-size: 13px !important;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
|
|
+ font-style: normal;
|
|
|
dominant-baseline: middle;
|
|
dominant-baseline: middle;
|
|
|
text-anchor: middle;
|
|
text-anchor: middle;
|
|
|
alignment-baseline: central;
|
|
alignment-baseline: central;
|
|
@@ -346,26 +347,42 @@
|
|
|
display: block;
|
|
display: block;
|
|
|
/* 确保图片不会在页面底部被截断 */
|
|
/* 确保图片不会在页面底部被截断 */
|
|
|
min-height: 30px;
|
|
min-height: 30px;
|
|
|
- /* 限制单张图片最大高度,防止过大图片跨页 */
|
|
|
|
|
- max-height: 180mm;
|
|
|
|
|
|
|
+ /* 限制独立图块尺寸,避免图片压过题干 */
|
|
|
|
|
+ max-height: 82mm;
|
|
|
}
|
|
}
|
|
|
.pdf-figure img {
|
|
.pdf-figure img {
|
|
|
- max-width: 100%;
|
|
|
|
|
|
|
+ max-width: min(84%, 420px);
|
|
|
|
|
+ max-height: 82mm;
|
|
|
|
|
+ width: auto;
|
|
|
height: auto;
|
|
height: auto;
|
|
|
display: block;
|
|
display: block;
|
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
|
object-fit: contain;
|
|
object-fit: contain;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
|
+ -webkit-print-color-adjust: exact;
|
|
|
|
|
+ print-color-adjust: exact;
|
|
|
|
|
+ image-rendering: -webkit-optimize-contrast;
|
|
|
}
|
|
}
|
|
|
/* 题干中的图片样式(向后兼容) */
|
|
/* 题干中的图片样式(向后兼容) */
|
|
|
.question-stem img,
|
|
.question-stem img,
|
|
|
.question-main img,
|
|
.question-main img,
|
|
|
- .question-content img {
|
|
|
|
|
|
|
+ .question-content img,
|
|
|
|
|
+ .answer-meta img,
|
|
|
|
|
+ .answer-line img,
|
|
|
|
|
+ .solution-content img,
|
|
|
|
|
+ .solution-section img,
|
|
|
|
|
+ .solution-parsed img {
|
|
|
display: block;
|
|
display: block;
|
|
|
- max-width: 100%;
|
|
|
|
|
|
|
+ max-width: 220px;
|
|
|
|
|
+ max-height: 60mm;
|
|
|
|
|
+ width: auto;
|
|
|
height: auto;
|
|
height: auto;
|
|
|
- margin: 12px auto;
|
|
|
|
|
|
|
+ margin: 6px auto;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
|
+ object-fit: contain;
|
|
|
|
|
+ -webkit-print-color-adjust: exact;
|
|
|
|
|
+ print-color-adjust: exact;
|
|
|
|
|
+ image-rendering: -webkit-optimize-contrast;
|
|
|
}
|
|
}
|
|
|
/* 选项中的图片样式 - 防止超出容器 */
|
|
/* 选项中的图片样式 - 防止超出容器 */
|
|
|
.option img {
|
|
.option img {
|
|
@@ -381,6 +398,17 @@
|
|
|
-webkit-print-color-adjust: exact;
|
|
-webkit-print-color-adjust: exact;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ .question-stem .katex,
|
|
|
|
|
+ .question-main .katex,
|
|
|
|
|
+ .question-content .katex {
|
|
|
|
|
+ font-size: 1em !important;
|
|
|
|
|
+ vertical-align: -0.04em;
|
|
|
|
|
+ }
|
|
|
|
|
+ .question-stem .katex-display,
|
|
|
|
|
+ .question-main .katex-display,
|
|
|
|
|
+ .question-content .katex-display {
|
|
|
|
|
+ margin: 0.35em 0 !important;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|
|
|
</head>
|
|
</head>
|
|
|
<body>
|
|
<body>
|