Title: WP Browser/Platform Detection
Author: Gourav RR
Published: <strong>2019 年 3 月 1 日</strong>
Last modified: 2023 年 1 月 3 日

---

搜索插件

![](https://ps.w.org/wp-browser-platform-detection/assets/banner-772x250.jpg?rev
=2404477)

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

![](https://ps.w.org/wp-browser-platform-detection/assets/icon-256x256.png?rev=2042102)

# WP Browser/Platform Detection

 作者：[Gourav RR](https://profiles.wordpress.org/gouravrr/)

[下载](https://downloads.wordpress.org/plugin/wp-browser-platform-detection.zip)

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

 [支持](https://wordpress.org/support/plugin/wp-browser-platform-detection/)

## 描述

This plugin do best role to detect browser/platform. For wordpress developer its
been complicated to detect browser/platform, this plugin will add browser/platform
name as class in body tag of webpage, so as a developer you can easily detect browser/
platform and write some CSS or JS stuff according to your requirements.

The plugin will do the following

 1. Browser
 2. Web server
 3. Device
 4. Operating system

For example, if you are using ipad, then this plugin will add ipad, osx, and safari
classes in body tag.

### Additional enhancements in version 2.0.0

 1. Detected browsers
     ‣ Chrome ‣ Safari ‣ Netscape ‣ Opera ‣ Opera Mini ‣ Opera Mobi‣
    Mac Internet Explorer ‣ Windows Internet Explorer ‣ FireFox ‣ Internet Explorer‣
    Microsoft Edge Browser ‣ Lynx Browser
 2. Detected Web servers
     ‣ Apache HTTP Server ‣ Microsoft IIS 7 ‣ Microsoft IIS ‣ 
    Nginx Web Server
 3. Detected Devices
     ‣ iPad ‣ iPod ‣ iPhone ‣ Android ‣ Silk ‣ Kindle ‣ BlackBerry‣
    Mobile
 4. Detected Operating systems
     ‣ Windows 10 ‣ Windows 8.1 ‣ Windows 8 ‣ Windows 7 ‣
    Windows Vista ‣ Windows XP ‣ Windows 2000 ‣ Windows ME ‣ Windows 98 ‣ Windows 95‣
    Windows 3.11 ‣ Mac OS 10 ‣ Mac OS 9 ‣ Linux ‣ Ubuntu ‣ Mobile Web OS

### Arbitrary section

## 安装

 1. Upload `wp-browser-platform-detection` to the `/wp-content/plugins/` directory
 2. Activate the plugin
 3. Inspect page or Check page source and you will find new classes added to body 🙂

## 评价

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

### 󠀁[Great, Flexible Plugin Ever](https://wordpress.org/support/topic/great-flexible-plugin-ever/)󠁿

 [Vinayak Zutti](https://profiles.wordpress.org/vinayakz/) 2019 年 6 月 2 日

Great plugin ever, which helps in flexibility for CSS, HTML, by just adding only
class in body, detecting browser and its platform… 🤗🤗🤗

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

### 󠀁[Detect Device Plugin, build for Developers](https://wordpress.org/support/topic/detect-device-plugin-build-for-developers/)󠁿

 [Gourav RR](https://profiles.wordpress.org/gouravrr/) 2019 年 3 月 1 日

For wordpress developer its been complicated to detect browser/platform, this plugin
will add browser/platform name as class in body tag of webpage, so as a developer
you can easily detect browser/platform and write some CSS or JS stuff according 
to your requirements. Enjoy guys… 🙂

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/wp-browser-platform-detection/reviews/)

## 贡献者及开发者

「WP Browser/Platform Detection」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Gourav RR ](https://profiles.wordpress.org/gouravrr/)

[帮助将「WP Browser/Platform Detection」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-browser-platform-detection)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.0.9

 * Initial release

#### 1.0.0

 * Enhanced to detect all devices, browsers, operating systems and web-servers

#### 2.0.0

 * Tested on WordPress 6.0

## 额外信息

 *  版本 **2.0.0**
 *  最后更新：**3 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.0.12**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-browser-platform-detection/)
 * 标签
 * [body class](https://cn.wordpress.org/plugins/tags/body-class/)[browser](https://cn.wordpress.org/plugins/tags/browser/)
   [detect](https://cn.wordpress.org/plugins/tags/detect/)[device detection](https://cn.wordpress.org/plugins/tags/device-detection/)
   [platform](https://cn.wordpress.org/plugins/tags/platform/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-browser-platform-detection/advanced/)

## 评级

 5 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/wp-browser-platform-detection/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-browser-platform-detection/reviews/)

## 贡献者

 *   [ Gourav RR ](https://profiles.wordpress.org/gouravrr/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/wp-browser-platform-detection/)

## 捐助

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

 [ 捐助此插件 ](http://wordpressfoundation.org/donate/)