소스 검색

调整网站手机端图片过大和文字不协调问题

bihuisong 2 일 전
부모
커밋
f79381729a
2개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/resources/static/www/spdx.images/page.css
  2. 8 0
      src/main/resources/static/www/spdx.images/phone.css

+ 1 - 1
src/main/resources/static/www/spdx.images/page.css

@@ -228,7 +228,7 @@
 }
 
 .news p img{
-    width: 100% !important;
+    /*width: 70% !important;*/
     display: block;
     margin: 0 auto;
     height: auto !important;

+ 8 - 0
src/main/resources/static/www/spdx.images/phone.css

@@ -293,3 +293,11 @@
     align-items:center;
     width: 100%;
 }
+
+@media only screen and (max-width: 600px) {
+    .news p img{
+        width:100%!important;
+        height: auto!important;
+    }
+
+}