Home  >  Article  >  Backend Development  >  为什么Lavarel框架的blade模板引擎中<img>标签图片显示不了?

为什么Lavarel框架的blade模板引擎中<img>标签图片显示不了?

WBOY
WBOYOriginal
2016-06-06 20:11:151142browse

比如在一个表格其中一列中插入为什么Lavarel框架的blade模板引擎中<img>标签图片显示不了?标签,

<code>@extends('index')
@section('content')
<table>
    <thead>
        <tr><th>图片</th></tr>
    </thead>
    <tbody>
        <td><img  src="%E5%87%86%E7%A1%AE%E8%B7%AF%E5%BE%84" alt="为什么Lavarel框架的blade模板引擎中<img>标签图片显示不了?" ></td>
    </tbody>
</table>
@endsection
</code>

在浏览器上的显示效果是:
为什么Lavarel框架的blade模板引擎中<img>标签图片显示不了?

所以想请各位帮忙解决一下这个问题,谢谢!

回复内容:

比如在一个表格其中一列中插入为什么Lavarel框架的blade模板引擎中<img>标签图片显示不了?标签,

<code>@extends('index')
@section('content')
<table>
    <thead>
        <tr><th>图片</th></tr>
    </thead>
    <tbody>
        <td><img  src="%E5%87%86%E7%A1%AE%E8%B7%AF%E5%BE%84" alt="为什么Lavarel框架的blade模板引擎中<img>标签图片显示不了?" ></td>
    </tbody>
</table>
@endsection
</code>

在浏览器上的显示效果是:
为什么Lavarel框架的blade模板引擎中<img>标签图片显示不了?

所以想请各位帮忙解决一下这个问题,谢谢!

看你图片404的时候请求路径是什么

为什么不在img所在td前括tr呢,加上试试。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn