How to get the best resolution of image from srcset

How to get the best image resolution from srcset in WordPress post? For example, the image code looks like this:<img

How to get the best image resolution from srcset in WordPress post? For example, the image code looks like this:

    <img src="/uploads/2012/12/Multitronics-TC-750-300x175.jpg"
 class="aligncenter size-medium wp-image-3280 lazyloaded"
 alt="Multitronics TC 750"
 srcset="/uploads/2012/12/Multitronics-TC-750-300x175.jpg 300w, /uploads/2012/12/Multitronics-TC-750-513x265.jpg 513w, /uploads/2012/12/Multitronics-TC-750.jpg 1260w"
 sizes="(max-width: 300px) 100vw, 300px">

How to get the maximum image size (like Multitronics-TC-750.jpg 1260w) using the function? For example wp_calculate_image_srcset ()?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744850387a4597090.html

相关推荐

  • How to get the best resolution of image from srcset

    How to get the best image resolution from srcset in WordPress post? For example, the image code looks like this:<img

    2天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信