Bläddra i källkod

保持封面圖比例並裁切適中大小

paññābhinanda 5 år sedan
förälder
incheckning
6ca5cb6d1e
2 ändrade filer med 5 tillägg och 3 borttagningar
  1. 4 3
      app/course/index.php
  2. 1 0
      app/pcdl/index.php

+ 4 - 3
app/course/index.php

@@ -124,6 +124,7 @@ include "../pcdl/html_head.php";
 		}
 
 		.card_photo {
+			object-fit: cover;
 			border-radius: 20px 0 0 20px;
 		}
 
@@ -250,11 +251,11 @@ include "../pcdl/html_head.php";
 
 					//協助補上代碼:
 
-					html += '<div class="author">'+gLocal.gui.speaker+':';
-					html += "<a href='../uhome/course.php?userid="+iterator.teacher+"'>"
+					html += '<div class="author">' + gLocal.gui.speaker + ':';
+					html += "<a href='../uhome/course.php?userid=" + iterator.teacher + "'>"
 					html += iterator.teacher_info.nickname;
 					html += "</a>";
-					html +='</div>';
+					html += '</div>';
 
 					html += '<div class="subtitle">' + iterator.subtitle + '</div>';
 

+ 1 - 0
app/pcdl/index.php

@@ -94,6 +94,7 @@ require_once '../pcdl/html_head.php';
 		}
 
 		.card_photo {
+			object-fit: cover;
 			border-radius: 20px 0 0 20px;
 		}