<img src="img/480.png" srcset="img/480.png 480w , img/800.png 800w" alt=""> srcset值,不同尺寸的图片用逗号分隔,单位后面跟上w。