F12——审查元素——(style,console)
报错:
Failed to load resource: the server responded with a status of 403 (Forbidden)
解决方案:
只要在请求到的图片链接前面加上
https://images.weserv.nl/?url=
即可(注:这是一个专门缓存图片的网址),会有点慢。
例如:
无法加载的图片url为:https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2504027804.webp
把访问地址修改成src="https://images.weserv.nl/?url=https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2504027804.webp"就可以访问啦
参考:
https://blog.csdn.net/c_lanxiaofang/article/details/106979635
https://blog.csdn.net/qq_37674858/article/details/100762300