Forráskód Böngészése

fix: 修复选项里的图片显示超出范围问题

过卫栋 3 hete
szülő
commit
256e0beb8a

+ 6 - 0
resources/views/pdf/exam-grading.blade.php

@@ -245,6 +245,12 @@
             margin: 12px auto;
             box-sizing: border-box;
         }
+        /* 选项中的图片样式 - 防止超出容器 */
+        .option img {
+            max-width: 100%;
+            height: auto;
+            vertical-align: middle;
+        }
     </style>
 </head>
 <body style="page-break-before: always;">

+ 6 - 0
resources/views/pdf/exam-paper.blade.php

@@ -330,6 +330,12 @@
             margin: 12px auto;
             box-sizing: border-box;
         }
+        /* 选项中的图片样式 - 防止超出容器 */
+        .option img {
+            max-width: 100%;
+            height: auto;
+            vertical-align: middle;
+        }
         @media print {
             .no-print {
                 display: none;