Bonky Zhu
If someone is able to show me that what I think or do is not right, I will happily change, for I seek the truth, by which no one was ever truly harmed. It is the person who continues in his self-deception and ignorance who is harmed.

解决特色图片自动压缩的问题

最近,我因为首页的图片被压缩而苦恼。手机上看还好,电脑上的体验简直是非常糟糕,图片被压缩成了大果粒。

检查源代码可以看到,srcset 属性把我的图片压缩成了1025*576 ,难怪成了大果粒。

屏幕快照 2019-10-04 下午11.41.12

srcset 的作用主要是响应式页面适应各种大小的屏幕设计的,加快加载速度,但我不需要,个人博客有时候还是要自己看的舒服最重要。

然后我下载了Disable Responsive Images Complete插件,发现问题完美解决。

ps:其实没下载插件前,发现Safari 可以正常显示,而Chrome不能?

Share

You may also like...

发表评论