修复试卷打印时考试说明圆角被遮挡的问题
- 增加打印页面边距从0.8cm到1cm,为圆角提供更多显示空间 - 保留考试说明卡片的圆角效果,设置overflow: visible防止裁剪 - 添加padding为圆角提供内部缓冲空间 - 修正考试说明中的文字描述(填空题改为简答题) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
0464223d00
commit
74d692ed2c
@ -205,10 +205,10 @@
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
// A4纸张设置
|
||||
// A4纸张设置 - 增加边距以确保圆角不被遮挡
|
||||
@page {
|
||||
size: A4;
|
||||
margin: 0.8cm;
|
||||
margin: 1cm;
|
||||
}
|
||||
|
||||
.container {
|
||||
@ -251,6 +251,11 @@
|
||||
.instructionCard {
|
||||
margin-bottom: 6px;
|
||||
border: 1px solid #000;
|
||||
// 确保圆角不被裁剪
|
||||
border-radius: 8px;
|
||||
overflow: visible;
|
||||
// 添加一些内边距确保圆角有空间显示
|
||||
padding: 2px;
|
||||
|
||||
:global(.ant-card-body) {
|
||||
padding: 6px;
|
||||
|
||||
@ -447,7 +447,7 @@ const ExamPrint: React.FC = () => {
|
||||
<Title level={4}>考试说明</Title>
|
||||
<ul>
|
||||
<li>本试卷满分100分,考试时间为60分钟</li>
|
||||
<li>填空题每题8分,请在答题区域内作答,字迹清晰工整</li>
|
||||
<li>简答题每题8分,请在答题区域内作答,字迹清晰工整</li>
|
||||
<li>论述题每题9分,从以下2道题目中任选1道作答</li>
|
||||
</ul>
|
||||
</Card>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user