diff --git a/application/third_party/htmlcompressor/controllers/index_gm.php b/application/third_party/htmlcompressor/controllers/index_gm.php
index 0a987645..33c8e074 100644
--- a/application/third_party/htmlcompressor/controllers/index_gm.php
+++ b/application/third_party/htmlcompressor/controllers/index_gm.php
@@ -278,17 +278,21 @@ class Index_gm extends CI_Controller
if (!empty($img_size)) {
//添加webp图片支持
$img_src_webp='';
+ $layout = 'responsive';
if(substr($img_src, -4) == '.jpg'){
- $img_src_jpg=" width}\" height=\"{$img_size->height}\">";
+ if($img_size->width < 400){
+ $layout = 'fixed';
+ }
+ $img_src_jpg=" width}\" height=\"{$img_size->height}\">";
$img_src_webp=substr($img_src, 0, strlen($img_src) - 4).'.webp';
- $img_src_webp = " width}\" height=\"{$img_size->height}\">{$img_src_jpg}";
+ $img_src_webp = " width}\" height=\"{$img_size->height}\">{$img_src_jpg}";
}
if(!empty($img_src_webp)){
$image->outertext =$img_src_webp;
}else{
- $image->outertext = " width}\" height=\"{$img_size->height}\">";
+ $image->outertext = " width}\" height=\"{$img_size->height}\">";
}
}
}
diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php
index b5a4bce8..a2bf64f4 100644
--- a/application/views/bootstrap3/information_edit.php
+++ b/application/views/bootstrap3/information_edit.php
@@ -1267,6 +1267,7 @@ $meta_subnavi_arr = array(
+