移动第一响应图像技术 [英] Mobile First Responsive Image Technique
本文介绍了移动第一响应图像技术的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在移动第一种方法中处理响应图像的当前标准方式是什么?
What is the current standard way to handle responsive images in a mobile first approach?
这是目前使用的一种接受的方法,
That is: is there an accepted method in use today that allows small resolution images to be served to mobile/small screen width devices, while larger resolution images be served to tablet/desktop etc.?
推荐答案
省略< img />
上的 width
和 height
标签,如果它的父元素是响应,它会缩放。
Omit width
and height
on the <img />
tag, if it's parent element is responsive it'll scale.
这篇关于移动第一响应图像技术的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文