yangchaojie 1 kuukausi sitten
vanhempi
commit
599df974f7
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      templates/blog.html

+ 3 - 3
templates/blog.html

@@ -293,7 +293,7 @@
         }
 
         /* 如果有 img 没包 <a> 的,也同样 */
-        #article img {
+        #article_content img {
             display: inline-block;
             margin: 0.5rem;
             max-width: 100%;
@@ -301,7 +301,7 @@
         }
 
         /* 去除一切过渡,避免闪动 */
-        #article img,
+        #article_content img,
         #article a img {
             transition: none !important;
         }
@@ -644,7 +644,7 @@
 
     $(function () {
         // 选中你文章区里的所有图片
-        $('#article img').each(function () {
+        $('#article_content img').each(function () {
             const $img = $(this);
             const src = $img.attr('src');
             const alt = $img.attr('alt') || '';