跳到内容

WP Srcset

v1.0.3

Matthew Haines-Young · 2014年10月5日 上架

Very simple plugin to get retina images on your WordPress site. Automatically load high resoloution images using the new srcset attribute.

正在使用
10 以下
评分
暂无
累计下载
1,620
最近更新
2014年10月9日
需要 WordPress 4.0+已测试到 4.0.38

The new srcset attribute has recently dropped in Chrome and Firefox. It is the simplest way to get retina ready images on your site.

This plugin will automatically add the srcset attribute to your images if a suitable retina sized image can be found.

It also includes a JS polyfill – Picturefill – to ensure that this works on all browsers – not just those that support srcset. This is about 6.5kb, and can easily be dequeued if you only wish to support browsers that have implemented this functionality.

This plugin does not handle generation of the alternative images, and this should either be done manually or using another plugin. See installation instructions for more information.

This plugin requires PHP 5.3

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums