|
@@ -41,10 +41,14 @@ defineExpose({showDrawer});
|
|
|
<style scoped lang="scss">
|
|
|
@media print {
|
|
|
#print {
|
|
|
- position: absolute; /* 或 absolute, fixed, 根据需要调整 */
|
|
|
- top: 20px; /* 调整顶部位置 */
|
|
|
- margin: 0; /* 重置边距 */
|
|
|
- width: 1000px;
|
|
|
+ transform: scale(1.25);
|
|
|
+ transform-origin: top left; /* 确保从左上角缩放,避免偏移 */
|
|
|
+ position: absolute;
|
|
|
+ top: 80px; /* 增大顶部间距(向下移动) */
|
|
|
+ left: -260px; /* 负值向左移动,正值向右移动 */
|
|
|
+ margin: 0;
|
|
|
+ width: 100%;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
</style>
|