Browse Source

新闻标题宽度

linwu 3 years ago
parent
commit
3316e8f2af
1 changed files with 1 additions and 1 deletions
  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>">