打印样式调整
This commit is contained in:
parent
38d399ea59
commit
82cf834dab
@ -287,8 +287,8 @@
|
||||
|
||||
/* 一般检查的表格 */
|
||||
.general-exam .exam-table {
|
||||
margin: 20px 0 40px !important;
|
||||
/* 下边距从0增加到40px */
|
||||
margin: 20px 0 90px 90px !important; /* 左右边距增加到40px */
|
||||
width: calc(100% - 140px) !important; /* 调整表格宽度 */
|
||||
}
|
||||
|
||||
.general-exam .exam-table th,
|
||||
@ -301,13 +301,15 @@
|
||||
|
||||
/* 一般检查的小结 */
|
||||
.general-exam .report-summary {
|
||||
padding: 5px !important;
|
||||
padding: 5px 40px !important; /* 增加左右内边距 */
|
||||
left: 0 !important; /* 重置left值,因为我们使用padding */
|
||||
right: 0 !important;
|
||||
margin-left: 50px !important;
|
||||
margin-right: 20px !important;
|
||||
bottom: 170px !important;
|
||||
min-height: auto;
|
||||
/* 移除固定高度 */
|
||||
margin-bottom: 0 !important;
|
||||
left: 20px;
|
||||
right: 20px;
|
||||
position: absolute;
|
||||
font-size: 14px !important;
|
||||
background-color: transparent !important;
|
||||
@ -545,10 +547,8 @@
|
||||
}
|
||||
|
||||
.report-footer {
|
||||
left: 20px !important;
|
||||
/* 从10px调整为20px */
|
||||
left: 40px !important; /* 与汇总页保持一致 */
|
||||
right: 20px !important;
|
||||
/* 从10px调整为20px */
|
||||
border-top: 1px solid #000 !important;
|
||||
}
|
||||
|
||||
@ -569,6 +569,148 @@
|
||||
margin-bottom: 15px !important; /* 打印时保持段落间距 */
|
||||
}
|
||||
|
||||
/* 汇总页面左侧留出装订线空间 */
|
||||
#summary-page-1 .summary-section,
|
||||
#summary-page-2 .summary-section {
|
||||
padding-left: 40px !important; /* 增加左边距 */
|
||||
}
|
||||
|
||||
#summary-page-1 .summary-title,
|
||||
#summary-page-2 .summary-title {
|
||||
text-align: center !important;
|
||||
margin-left: 20px !important; /* 标题向右移动 */
|
||||
}
|
||||
|
||||
#summary-page-1 .summary-notice,
|
||||
#summary-page-2 .summary-notice {
|
||||
margin-left: 60px !important; /* 提示文本向右移动 */
|
||||
}
|
||||
|
||||
#summary-page-1 .summary-content,
|
||||
#summary-page-2 .summary-content {
|
||||
margin-left: 60px !important; /* 内容向右移动更多 */
|
||||
margin-right: 40px !important;
|
||||
}
|
||||
|
||||
#summary-page-1 .summary-tip,
|
||||
#summary-page-2 .summary-tip {
|
||||
margin-left: 50px !important; /* 提示信息向右移动 */
|
||||
margin-right: 40px !important;
|
||||
}
|
||||
|
||||
#summary-page-1 .report-footer,
|
||||
#summary-page-2 .report-footer {
|
||||
left: 40px !important; /* 页脚向右移动 */
|
||||
}
|
||||
|
||||
/* 超声检查报告所见所得部分调整 */
|
||||
.ultrasound-exam .report-summary {
|
||||
padding: 5px 0 5px 80px !important; /* 增加左内边距到80px */
|
||||
margin-left: 20px !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
.ultrasound-exam .report-title {
|
||||
padding-left: 80px !important; /* 标题左侧留出空间 */
|
||||
}
|
||||
|
||||
/* 超声检查标题居中部分调整 */
|
||||
.ultrasound-exam .USPrinttitleDiv,
|
||||
.ultrasound-exam div[style*="text-align: center"] {
|
||||
padding-left: 80px !important;
|
||||
box-sizing: border-box !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
/* 调整尿常规、生化和血常规报告小结左侧距离设置 */
|
||||
/* 尿常规小结部分 */
|
||||
#urine-summary-div {
|
||||
padding: 5px 0 5px 80px !important; /* 增加左内边距到80px,与超声保持一致 */
|
||||
margin-left: 20px !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
/* 尿常规续页内容 */
|
||||
#urine-page-2 .summary-content {
|
||||
padding-left: 80px !important;
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
|
||||
/* 生化小结部分 */
|
||||
#biochemistry-summary-div {
|
||||
padding: 5px 0 5px 80px !important; /* 增加左内边距到80px,与超声保持一致 */
|
||||
margin-left: 20px !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
/* 生化续页内容 */
|
||||
#biochemistry-page-2 .summary-content {
|
||||
padding-left: 80px !important;
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
|
||||
/* 血常规小结部分 */
|
||||
#blood-summary-div {
|
||||
padding: 5px 0 5px 80px !important; /* 增加左内边距到80px,与超声保持一致 */
|
||||
margin-left: 20px !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
/* 血常规续页内容 */
|
||||
#blood-page-2 .summary-content {
|
||||
padding-left: 80px !important;
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
/* 心电图小结部分 */
|
||||
#ecg-summary {
|
||||
padding: 5px 0 5px 80px !important; /* 增加左内边距到80px,与超声保持一致 */
|
||||
margin-left: 20px !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
/* 中医体质辨识表格部分 - 参考一般检查表格样式 */
|
||||
.constitution-table {
|
||||
margin: 20px 0 30px 120px !important; /* 左侧边距增加到90px */
|
||||
width: calc(100% - 240px) !important; /* 调整表格宽度 */
|
||||
}
|
||||
|
||||
.constitution-table td {
|
||||
padding: 8px !important;
|
||||
font-size: 18px !important;
|
||||
line-height: 1.5 !important;
|
||||
height: 30px !important; /* 设置单元格高度 */
|
||||
border: 1px solid #000 !important;
|
||||
}
|
||||
/* 中医体质辨识内容部分 - 参考其他报告的内容区域 */
|
||||
.constitution-detail-container {
|
||||
padding: 5px 0 5px 90px !important; /* 与一般检查表格左内边距一致 */
|
||||
margin-left: 20px !important;
|
||||
margin-right: 20px !important;
|
||||
width: calc(100% - 140px) !important; /* 调整内容区域宽度 */
|
||||
font-size: 16px !important;
|
||||
line-height: 3 !important;
|
||||
border: none !important;
|
||||
}
|
||||
/* 心电图内容区域和图片样式 */
|
||||
#ecg-exam-content {
|
||||
max-height: 500px !important;
|
||||
overflow: hidden !important;
|
||||
width: calc(100% - 100px) !important; /* 增加容器宽度,从140px减少到100px */
|
||||
text-align: center !important;
|
||||
padding: 10px 0 10px 60px !important; /* 保持当前的左内边距 */
|
||||
margin: 0 !important; /* 移除自动边距 */
|
||||
margin-right: 5px !important; /* 右侧边距减小到5px */
|
||||
display: flex !important;
|
||||
justify-content: center !important;
|
||||
align-items: center !important;
|
||||
}
|
||||
|
||||
#ecg-exam-content img {
|
||||
max-width: 100% !important;
|
||||
max-height: 480px !important;
|
||||
object-fit: contain !important;
|
||||
margin: 20px auto !important;
|
||||
border: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* 添加首页样式 */
|
||||
@ -837,6 +979,22 @@
|
||||
font-size: 14px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* 只调整尿常规报告小结左侧距离设置 */
|
||||
@media print {
|
||||
/* 尿常规小结部分 */
|
||||
#urine-summary-div {
|
||||
padding: 5px 0 5px 80px !important; /* 增加左内边距到80px,与超声保持一致 */
|
||||
margin-left: 20px !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
/* 尿常规续页内容 */
|
||||
#urine-page-2 .summary-content {
|
||||
padding-left: 80px !important;
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user