Title: Modernizr for WordPress
Author: Ramoonus
Published: <strong>2011 年 4 月 22 日</strong>
Last modified: 2019 年 5 月 4 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/modernizr.svg)

# Modernizr for WordPress

 作者：[Ramoonus](https://profiles.wordpress.org/ramoonus/)

[下载](https://downloads.wordpress.org/plugin/modernizr.3.7.1.zip)

 * [详情](https://cn.wordpress.org/plugins/modernizr/#description)
 * [评价](https://cn.wordpress.org/plugins/modernizr/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/modernizr/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/modernizr/#developers)

 [支持](https://wordpress.org/support/plugin/modernizr/)

## 描述

This plugin adds the Modernizr to your WordPress installation.
 Modernizr is a small
JavaScript library that detects the availability of native implementations for next-
generation web technologies, i.e. features that stem from the HTML5 and CSS3 specifications.
Many of these features are already implemented in at least one major browser (most
of them in two or more), and what Modernizr does is, very simply, tell you whether
the current browser has this feature natively implemented or not.

For documentation visit http://www.modernizr.com/docs/

## 安装

 1. Upload `modernizer/` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Implement the required features as documented on http://www.modernizr.com/docs/

## 评价

![](https://secure.gravatar.com/avatar/4a0455559baa72a3f6a3da7bdb473afe80c4535c92657f38202d883ae4e4f899?
s=60&d=retro&r=g)

### 󠀁[Worked like a charm!](https://wordpress.org/support/topic/worked-like-a-charm-126/)󠁿

 [roiwerk](https://profiles.wordpress.org/roiwerk/) 2018 年 3 月 10 日

Worked like a charm! What more should I say.

![](https://secure.gravatar.com/avatar/4c25a0387a431f5beb9f366e8dada92c8fd6d90b8094a580e531417fe97c1cbf?
s=60&d=retro&r=g)

### 󠀁[Excellent, just one mistake:](https://wordpress.org/support/topic/excellent-just-one-mistake/)󠁿

 [waldbach](https://profiles.wordpress.org/waldbach/) 2017 年 11 月 23 日

Change in modernizr.php on line 19: modernizr-custom.js to modernizr.js Otherwise:
this saved my day! Thanks!

![](https://secure.gravatar.com/avatar/25f5f748f5d8b22652e204aff37efd60ea587c6a1c35b5b11e7ce8e8f0390730?
s=60&d=retro&r=g)

### 󠀁[Doesn’t work – Plugin Defunct](https://wordpress.org/support/topic/doesnt-work-plugin-defunct/)󠁿

 [newvibe](https://profiles.wordpress.org/newvibe/) 2017 年 2 月 17 日

The 2.8.4 version inserts broken javascript link. I posted a message about this 
in the support section for the plugin and the author has not responded or fixed 
the problem. Now, any site that I’ve added this plugin to can be broken if the user
runs an update. Instead, if you need Modernizr, insert the following into your header.
php file just after <?php wp_head(); ?>: <script type=”text/javascript” src=”https://
cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js”></script>

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/modernizr/reviews/)

## 贡献者及开发者

「Modernizr for WordPress」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Ramoonus ](https://profiles.wordpress.org/ramoonus/)

「Modernizr for WordPress」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/modernizr/contributors)
为本插件所做的贡献。

[帮助将「Modernizr for WordPress」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/modernizr)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/modernizr/)，查看[SVN仓库](https://plugins.svn.wordpress.org/modernizr/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/modernizr/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/modernizr/)。

## 更新日志

#### 3.7.1

 * Updated Modernizr to version 3.7.0
 * Skipped branch 3.6.x
 * Skipped release 3.7.0

#### 3.5.0

 * Updated Modernizr to version 3.5.0
 * Fixed a bug present since version 3.5.0
 * Skipped branch 3.4.x

#### 3.3.1.2

 * Fixed a bug present since version 3.3.1

#### 3.3.1.1

 * Fixed a bug present since version 2.6.1

#### 3.3.1

 * Updated Modernizr to version 3.3.1

#### 2.8.4

 * Improved deactivating other modernizr versions code. Code by [Gal Baras](http://get-business-online.com/)

#### 2.8.3

 * Updated Modernizr to version 2.8.3

#### 2.7.0

 * Updated Modernizr to version 2.7.0
 * Minor code improvement

#### 2.6.3

 * Updated Modernizr to version 2.6.3

#### 2.6.2

 * Updated Modernizr to version 2.6.2
 * Minor code improvement

#### 2.6.1

 * Updated Modernizr to version 2.6.1
 * Changelog for Modernizr 2.6.1 http://modernizr.com/news/modernizr-260/

#### 2.5.3

 * Updated Modernizr to 2.5.3
 * Code Optimization
 * Readme Update

#### 2.5.2

 * Updates Modernizr to 2.5.2

#### 2.5.0

 * Updates Modernizr to 2.5.0

#### 2.0.6

 * Updated Modernizr to 2.0.6

#### 2.0

 * Updated Modernizr to 2.0 (custom built using the default settings

#### 1.0.1

 * Fixes a PHP error (thanks Anthony)

#### 1.0.0

 * First version, based on Modernizr 1.7

## 额外信息

 *  版本 **3.7.1**
 *  最后更新：**7 年前**
 *  活跃安装数量 **900+**
 *  WordPress 版本 ** 4.8 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/modernizr/) 和 [English (US)](https://wordpress.org/plugins/modernizr/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/modernizr)
 * 标签
 * [html](https://cn.wordpress.org/plugins/tags/html/)[HTML5](https://cn.wordpress.org/plugins/tags/html5/)
   [ie](https://cn.wordpress.org/plugins/tags/ie/)[internet explorer](https://cn.wordpress.org/plugins/tags/internet-explorer/)
   [javascript](https://cn.wordpress.org/plugins/tags/javascript/)
 *  [高级视图](https://cn.wordpress.org/plugins/modernizr/advanced/)

## 评级

 3.4 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/modernizr/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/modernizr/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/modernizr/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/modernizr/reviews/?filter=2)
 *  [  2 条 1 星评价     ](https://wordpress.org/support/plugin/modernizr/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/modernizr/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/modernizr/reviews/)

## 贡献者

 *   [ Ramoonus ](https://profiles.wordpress.org/ramoonus/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/modernizr/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.ramoonus.nl/donate/)