样式修改
This commit is contained in:
parent
626fb63605
commit
588aae3c00
@ -164,16 +164,45 @@
|
||||
break-inside: avoid !important;
|
||||
page-break-after: always !important;
|
||||
break-after: page !important;
|
||||
height: auto !important;
|
||||
min-height: auto !important;
|
||||
max-height: none !important;
|
||||
margin: 0 !important;
|
||||
height: 1123px !important; /* 设置固定高度,与其他报告一致 */
|
||||
width: 800px !important;
|
||||
margin: 0 auto !important;
|
||||
padding: 0 !important;
|
||||
border: none !important;
|
||||
border-radius: 0 !important;
|
||||
box-shadow: none !important;
|
||||
display: block !important;
|
||||
overflow: visible !important;
|
||||
position: relative !important; /* 确保可以放置绝对定位的页脚 */
|
||||
}
|
||||
|
||||
/* 确保一般检查的页脚正确显示 */
|
||||
.general-exam .report-footer {
|
||||
position: absolute !important;
|
||||
bottom: 30px !important;
|
||||
left: 10px !important;
|
||||
right: 10px !important;
|
||||
border-top: 1px solid #000 !important;
|
||||
padding-top: 5px !important;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.general-exam .report-footer-text {
|
||||
font-size: 10px !important;
|
||||
margin: 0 !important;
|
||||
font-style: italic !important;
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
/* 确保一般检查的页码正确显示 */
|
||||
.general-exam .page-number {
|
||||
position: absolute !important;
|
||||
bottom: 10px !important;
|
||||
left: 0 !important;
|
||||
right: 0 !important;
|
||||
text-align: center !important;
|
||||
font-size: 10px !important;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
/* 一般检查的内容区域 */
|
||||
@ -200,7 +229,7 @@
|
||||
/* 一般检查的小结 */
|
||||
.general-exam .report-summary {
|
||||
padding: 5px !important;
|
||||
margin: 0 !important;
|
||||
margin-bottom: 80px !important;
|
||||
font-size: 9px !important;
|
||||
}
|
||||
|
||||
@ -272,6 +301,7 @@
|
||||
/* 小结部分 */
|
||||
.report-item:not(.general-exam) .report-summary {
|
||||
padding: 8px;
|
||||
margin-bottom: 80px !important;
|
||||
font-size: 11px;
|
||||
background-color: #f9f9f9 !important;
|
||||
}
|
||||
@ -352,6 +382,7 @@
|
||||
/* 调整超声检查报告的小结部分 */
|
||||
.ultrasound-exam .report-summary {
|
||||
padding: 5px !important;
|
||||
margin-bottom: 80px !important;
|
||||
font-size: 10px !important;
|
||||
}
|
||||
|
||||
@ -464,6 +495,57 @@
|
||||
text-align: center;
|
||||
margin: 0 5px; /* 增加左右间距 */
|
||||
}
|
||||
|
||||
/* 添加页码样式 */
|
||||
.page-number {
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* 打印时的页码样式 */
|
||||
@media print {
|
||||
.page-number {
|
||||
bottom: 10px;
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 调整页脚样式,避免与页码重叠 */
|
||||
.report-footer {
|
||||
position: absolute;
|
||||
bottom: 40px;
|
||||
left: 20px;
|
||||
right: 20px;
|
||||
border-top: 1px solid #000;
|
||||
padding-top: 10px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.report-footer-text {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* 打印时的页码样式 */
|
||||
@media print {
|
||||
.report-footer {
|
||||
position: absolute;
|
||||
bottom: 30px;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
border-top: 1px solid #000;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.report-footer-text {
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@ -506,6 +588,10 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 添加页码 -->
|
||||
<div class="page-number" >第1页</div>
|
||||
</div>
|
||||
</div>
|
||||
<p> </p>
|
||||
<!-- 前言 -->
|
||||
@ -534,6 +620,11 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="report-footer">
|
||||
<p class="report-footer-text">体检是健康的定投。</p>
|
||||
</div>
|
||||
<!-- 添加页码 -->
|
||||
<div class="page-number">第2页</div>
|
||||
</div>
|
||||
|
||||
<p> </p>
|
||||
@ -588,6 +679,11 @@
|
||||
<h4>体检科小结:</h4>
|
||||
<p>--</p>
|
||||
</div>
|
||||
<div class="report-footer">
|
||||
<p class="report-footer-text">体检是健康的定投。</p>
|
||||
</div>
|
||||
<!-- 添加页码 -->
|
||||
<div class="page-number">第3页</div>
|
||||
</div>
|
||||
|
||||
<!-- 超声检查报告 -->
|
||||
@ -616,6 +712,11 @@
|
||||
<br>--
|
||||
</p>
|
||||
</div>
|
||||
<div class="report-footer">
|
||||
<p class="report-footer-text">体检是健康的定投。</p>
|
||||
</div>
|
||||
<!-- 添加页码 -->
|
||||
<div class="page-number">第4页</div>
|
||||
</div>
|
||||
|
||||
<!-- 尿常规检查报告 -->
|
||||
@ -638,6 +739,11 @@
|
||||
<h4>检验科小结:</h4>
|
||||
<p>--</p>
|
||||
</div>
|
||||
<div class="report-footer">
|
||||
<p class="report-footer-text">定期体检,尊享健康!</p>
|
||||
</div>
|
||||
<!-- 添加页码 -->
|
||||
<div class="page-number">第5页</div>
|
||||
</div>
|
||||
|
||||
<!-- 生化检查报告 -->
|
||||
@ -660,6 +766,11 @@
|
||||
<h4>检验科小结:</h4>
|
||||
<p>--</p>
|
||||
</div>
|
||||
<div class="report-footer">
|
||||
<p class="report-footer-text">定期体检,尊享健康!</p>
|
||||
</div>
|
||||
<!-- 添加页码 -->
|
||||
<div class="page-number">第6页</div>
|
||||
</div>
|
||||
|
||||
<!-- 血常规检查报告 -->
|
||||
@ -682,6 +793,11 @@
|
||||
<h4>检验科小结:</h4>
|
||||
<p>--</p>
|
||||
</div>
|
||||
<div class="report-footer">
|
||||
<p class="report-footer-text">定期体检,尊享健康!</p>
|
||||
</div>
|
||||
<!-- 添加页码 -->
|
||||
<div class="page-number">第7页</div>
|
||||
</div>
|
||||
|
||||
<!-- 心电图检查报告 -->
|
||||
@ -698,6 +814,11 @@
|
||||
<br>--
|
||||
</p>
|
||||
</div>
|
||||
<div class="report-footer">
|
||||
<p class="report-footer-text">定期体检,尊享健康!</p>
|
||||
</div>
|
||||
<!-- 添加页码 -->
|
||||
<div class="page-number">第8页</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user