我怎样才能把‘智能(AI)’作为第二行?是否可以在@区段中为h1标题做断线操作?
@section('title','Artificial Intelligence (AI)')发布于 2021-05-25 04:18:25
您可以在多行中尝试此方法。
@section('title')
Artificial Intelligence
<br>
(AI)
@endsection发布于 2021-05-25 04:23:46
如果问题是HTML正在转义,您可以尝试使用HTML助手类:
@section('title', new \Illuminate\Support\HtmlString('Artificial<br>Intelligence (AI)'))它应该将字符串显示为未转义的HTML。
https://stackoverflow.com/questions/67681685
复制相似问题