自“w”描述符无效以来,“Failed parsing'srcset'属性值是什么”。意思? [英] What does "Failed parsing 'srcset' attribute value since its 'w' descriptor is invalid." mean?

查看:855
本文介绍了自“w”描述符无效以来,“Failed parsing'srcset'属性值是什么”。意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


由于其'w'描述符为$,所以无法解析'srcset'属性值b $ b无效。
删除srcset候选
http://i2.wp.com/domain.net/wp-content/.../image.jpg?resize=425%2C200


任何想法是什么意思?



我使用WordPress作为我的网站平台。我还使用其Photon功能(在Jetpack框架内)。我怀疑它与这个功能有关。图片尺寸是否被错误地指定?



什么是'w'描述符?




更新
以下是HTML:

 < img src =http:// i1.wp.com/gaithersburgpsychologist.net/wp-content/uploads/2015/02/lightbulb.jpg?resize=425%2C200srcset =http://i1.wp.com/gaithersburgpsychologist.net/wp-content /uploads/2015/02/lightbulb.jpg?resize=425%2C200 w,http://i1.wp.com/gaithersburgpsychologist.net/wp-content/uploads/2015/02/lightbulb.jpg?resize=450% 2C320 wsizes =(min-width:768px)720px,(min-width:992px)700px,(min-width:1200px)850px,calc(100vw-20px)alt =改变你的想法,然后改变你的想法世界>。 


解决方案

我有类似的错误:


无法解析srcset属性值,因为它具有未知描述符

问题是由图像路径URL中的空格造成的。


I get Chrome errors on my website that say:

Failed parsing 'srcset' attribute value since its 'w' descriptor is invalid.
Dropped srcset candidate http://i2.wp.com/domain.net/wp-content/.../image.jpg?resize=425%2C200

Any idea what this means?

I am using WordPress as my website platform. I also use its Photon feature (within its Jetpack framework). My suspicion is that it has to do with this feature. Are image dimensions getting specified incorrectly or something?

What are 'w' descriptors?


UPDATE: Here is the HTML:

<img src="http://i1.wp.com/gaithersburgpsychologist.net/wp-content/uploads/2015/02/lightbulb.jpg?resize=425%2C200" srcset="http://i1.wp.com/gaithersburgpsychologist.net/wp-content/uploads/2015/02/lightbulb.jpg?resize=425%2C200 w, http://i1.wp.com/gaithersburgpsychologist.net/wp-content/uploads/2015/02/lightbulb.jpg?resize=450%2C320 w" sizes="(min-width: 768px) 720px, (min-width: 992px) 700px, (min-width: 1200px) 850px, calc(100vw-20px)" alt="Change your thoughts and you change your world.">

解决方案

I had a similar error:

failed parsing srcset attribute value since it has an unknown descriptor

and the problem was caused by a space in the image path URL.

这篇关于自“w”描述符无效以来,“Failed parsing'srcset'属性值是什么”。意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆