有背景图像的理想尺寸吗? [英] Is there an ideal size for background images?
问题描述
例如,1x1图片的载入速度会比2x2吗?
For example, would a 1x1 image load faster than a 2x2? The size would be smaller, but the browser would have to work twice as much, right?
因此,有一个理想的大小和形状(正方形vs矩形)的背景图片?
So, is there an ideal size and shape (square vs rectangle) for background images?
我知道这可能不太重要,但我很想知道。
I know it's probably not too important, but I'm interested to know.
谢谢
推荐答案
我不认为您的图片有理想尺寸。
I don't think there is an 'ideal' size for your image.
虽然图像的质量将在下载时间中起作用。
Although the quality of the image will have a role in the download time. An image with rich colors embedded will be heavy in size compared to another with the same dimension.
最后,完全选择背景图片 取决于你的需要 。如果你需要一个2 * 2的图像,那么你必须包括。
Finally the choice of a background image entirely depends on your need. If you need a 2*2 image then you have to include that.
如果您需要使用大量的背景图片来优化网站的效果,那么您可以查看
If you need to optimize the performance of a site using plenty of background images then you can take a look at
和一些用于图片优化的工具
and some tools for image optimization
这篇关于有背景图像的理想尺寸吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!