[WordPress] 外掛分享: WP Srcset

首頁外掛目錄 › WP Srcset
全新外掛
安裝啟用
尚無評分
4179 天前
最後更新
問題解決
WordPress 4.0+ v1.0.3 上架:2014-10-04

內容簡介

最近 Chrome 和 Firefox 釋出了新的 srcset 屬性,這是在網站上輕鬆實現 retina ready 圖片的最簡單方法。

本外掛會自動在您的圖片上添加 srcset 屬性,如果能找到合適的 retina 大小圖片的話。

它還包括了一個 JS polyfill - Picturefill - 確保這在所有瀏覽器上都可以運行,而不僅僅是支持 srcset 的瀏覽器。這個插件大約是6.5KB,如果您只想支援已實現此功能的瀏覽器,可以輕鬆取消排隊。

本外掛不處理替代圖片的生成,這應該手動完成或使用其他外掛進行。有關更多信息,請參閱安裝說明。

本外掛需要 PHP 5.3。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Srcset」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon