我创建了一个干净的外部刀片来渲染我的结果,但是我会输出一个复选框,而复选框需要css和js。我试图直接包含它但没有运气
<link rel="stylesheet" type="text/css" href="{{asset('materialize/css/materialize.min.css')}}">
<link href="{{asset('css/materializeicon.css')}}" rel="stylesheet">
@if (!empty($permissions))
<div class="flex_3_container">
@foreach ($permissions as $r)
<div class="flex_3_item">test</div>
@endforeach
</div>
@endif
//putting here doesn't work either
我的控制器
public function getExistingRolesPermission($id){
$permissions = Permission::find($id);
$returnHTML = view('renders.render')->with('permissions',$permissions)->render();
return response()->json(array('output'=>'get_assigning', 'html'=>$returnHTML));
}
我的回复应该有文本的背景颜色,只会呈现&#34;测试&#34;字
if(data.output === 'get_assigning'){
$('.display_section').html(data.html);
}
只有直接输入风格才能起作用
.flex_3_containier
display: flex
flex-wrap: row wrap
position: relative
height: auto
width: 300px
.flex_3_item
display: inline-block
margin: 4px
//flex-grow: 1
/* width: calc(100% * (1/4) - 10px - 1px) */
flex: 0 1 calc(20% - 8px)
background-color: blue