没有找到的图片,可以用什么方法,统一同其他图片来替换_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:47:49
Original
982 people have browsed it

没有找到的图片,可以用什么方法,统一同其他图片来替换

回复讨论(解决方案)

没有找到的图片,可以用什么方法,统一同其他图片来替换_html/css_WEB-ITnose

没有找到的图片,可以用什么方法,统一同其他图片来替换_html/css_WEB-ITnose

每个图片都加这么一行,都点繁琐了

你可以使用JS统一都给img标签加上啊。

你可以使用JS统一都给img标签加上啊。

能不能给段代码,谢谢了

后台重写 图片的输出代码
发现没有该图片文件 则返回一张默认的图片

后台重写 图片的输出代码
发现没有该图片文件 则返回一张默认的图片

我想也就这么办吧

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!