css - html5APP开发中 图片的规格问题(移动端的图片尺寸可以怎样限制来加强页面的加载速度呢?)
大家讲道理
大家讲道理 2017-04-17 12:04:04
0
3
495

使用HTML5做webAPP开发,发现平常PC端 响应式WEB开发中使用的大图在WEBAPP开发中图片加载较慢,或者说损耗的内存太大。想请问一下移动端开发的图片尺寸是否有做什么限制呢,比如图片的尺寸大小,最大长度宽度,采用的图片格式等等的限制。
例如文章页面的图片规格和列表页面的图片规格尺寸等有什么特殊的限制。
总得来说,怎样合理的使用图片,限制图片的规格来优化APP?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
PHPzhong

Generally, I like to use Svg for header or footer, especially for mobile devices, it must be svg

迷茫

Just dynamically generate image links based on the screen resolution and the image server will handle it automatically

巴扎黑

1. Use image compression tools to compress images. Some images are not compressed enough in the image format sent by the artist. (tinypng)
2. Thumbnails. If you want to display small images, you can generate thumbnails in the backend for use.
3. The background or regular background of some controls can be realized through CSS instead of using images
4. Use some lazy loading methods to display images to make the image loading transition more natural.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template