Browse Source

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

bihuisong 2 days ago
parent
commit
f79381729a

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

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

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

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