作者:祥仔先森_530 | 来源:互联网 | 2023-02-05 10:43
Probablyabasicquestiontotheexpertsinthis对于这方面的专家来说可能是一个基本问题Example:Ihaveimage2000x15
Probably a basic question to the experts in this
对于这方面的专家来说可能是一个基本问题
Example:
I have image 2000x1500px @ 556kb - a set of pictures of that size causes iOS devices to not load the page (considering there are many pictures) due to cache levels I'm guessing.
我有图像2000x1500px @ 556kb - 由于我猜的缓存级别,一组这样大小的图片导致iOS设备无法加载页面(考虑到有很多图片)。
If I create two of the same files one at 2000x1500 and other at 800x450 with a much lower weight due to smaller dimension - which would be intended for mobile devices only.
如果我创建两个相同的文件,一个在2000x1500,另一个在800x450,由于尺寸较小,重量轻得多 - 这仅适用于移动设备。
How would I address that in CSS or whatever is the right method to go about this?
我将如何在CSS中解决这个问题或者哪种方法可以解决这个问题?
2 个解决方案