소스 검색

新闻标题宽度

linwu 3 년 전
부모
커밋
3316e8f2af
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Admin/Controllers/Content/BuyHouseNewsController.php

+ 1 - 1
app/Admin/Controllers/Content/BuyHouseNewsController.php

@@ -99,7 +99,7 @@ class BuyHouseNewsController extends Controller
                 $style .='font-weight:bold;';
             }
             return '<span style="'.$style.'">'.$this->title.'</span>';
-        })->width(200);
+        })->style('max-width:200px');
         $grid->small_img('缩略图')->display(function () {
             if ($this->small_img) {
                 return '<span class="vtip" title="<img src=\''.upload_asset($this->small_img).'\'  height=120>">