"Could not load image" 在 css 后台? laravel
"Could not load image" in css background? laravel
我用完了 php artisan storage:link
,但我不知道为什么它没有加载。当我检查它并悬停它时,它说 “无法加载图像”,如下所示。
更让我困惑的是,当我点击它时 link 实际上起作用了。
代码如下:
<div class="advertise p-2">
<div class="ae-box" style="background: linear-gradient( rgba(34,34,34,0.78), rgba(34,34,34,0.78)), url('http://localhost/storage/ad1.gif') no-repeat;background-position-x: 0%, 0%;background-position-y: 0%, 0%;background-size: auto, auto;background-size: cover;background-position: center center;-webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;">
<div class="ae-box-body text-center">
<div class=""><i class="fa fa-certificate fa-3x"></i></div>
<h4 class="m-0">Clifford Graham</h4>
<p class="m-0">2 hours ago</p>
</div>
</div>
</div>
有人知道怎么做吗?
我认为巨大的内联样式语句只是在要求打字错误。
我建议将所有这些移动到 CSS 样式文件中的 class 语句,并逐个元素地构建它,直到你看到它全部出错...
找到答案了,因为我安装了adblocker。现在我禁用它后它可以工作了。
解决方案:
我用完了 php artisan storage:link
,但我不知道为什么它没有加载。当我检查它并悬停它时,它说 “无法加载图像”,如下所示。
更让我困惑的是,当我点击它时 link 实际上起作用了。
代码如下:
<div class="advertise p-2">
<div class="ae-box" style="background: linear-gradient( rgba(34,34,34,0.78), rgba(34,34,34,0.78)), url('http://localhost/storage/ad1.gif') no-repeat;background-position-x: 0%, 0%;background-position-y: 0%, 0%;background-size: auto, auto;background-size: cover;background-position: center center;-webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;">
<div class="ae-box-body text-center">
<div class=""><i class="fa fa-certificate fa-3x"></i></div>
<h4 class="m-0">Clifford Graham</h4>
<p class="m-0">2 hours ago</p>
</div>
</div>
</div>
有人知道怎么做吗?
我认为巨大的内联样式语句只是在要求打字错误。 我建议将所有这些移动到 CSS 样式文件中的 class 语句,并逐个元素地构建它,直到你看到它全部出错...
找到答案了,因为我安装了adblocker。现在我禁用它后它可以工作了。
解决方案: