Title: Awebsome! Browser Selector
Author: Raul Illana
Published: <strong>2011 年 7 月 18 日</strong>
Last modified: 2012 年 11 月 15 日

---

搜索插件

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

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

# Awebsome! Browser Selector

 作者：[Raul Illana](https://profiles.wordpress.org/raulillana/)

[下载](https://downloads.wordpress.org/plugin/awebsome-browser-selector.zip)

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

 [支持](https://wordpress.org/support/plugin/awebsome-browser-selector/)

## 描述

Modifies the body tag classes adding some Platform/Browser/Version codes, so you
can add quick and clean CSS patches.

#### Inspired by

 * [PHP CSS Browser Selector](http://bastian-allgeier.de/css_browser_selector) from
   [Bastian Allgeier](http://bastian-allgeier.de)
 * [JS CSS Browser Selector](http://rafael.adm.br/css_browser_selector) from [Rafael Lima](http://rafael.adm.br)

#### Based in

 * [PhpUserAgent](http://donatstudios.com/PHP-Parser-HTTP_USER_AGENT) from [Jesse Donat](http://donatstudios.com).

#### Available Platform Codes

**Desktop**

 * **win** – Microsoft Windows
 * **lnx** – x11 and Linux distros
 * **mac** – MacOS
 * **cros** – ChromeOS

**Mobile**

 * **android** – Android
 * **iphone** – iPhone
 * **ipad** – iPad
 * **blackberry** – Blackberry
 * **winphone** – Windows Phone OS
 * **kindle** – Kindle
 * **kindlefire** – Kindle Fire

**Consoles**

 * **xbox** – Xbox 360
 * **ps3** – PlayStation 3
 * **wii** – Nintendo Wii

#### Available Browser Codes

 * **ie** – Internet Explorer
 * **iemobile** – IEMobile
 * **firefox** – Mozilla, Firefox
 * **camino** – Camino
 * **opera** – Opera
 * **safari** – Safari
 * **chrome** – Google Chrome
 * **kindle** – Kindle
 * **silk** – Silk
 * **lynx** – Lynx
 * **wget** – Wget
 * **curl** – Curl

## 安装

Go easy!
 Upload, activate and enjoy developing.

## 常见问题

  Where should I write my CSS specific code?

At the end of your theme CSS file will be fine.

  How can I apply a patch for specific Platform/Browser/version?

 1. Filtering by Platform: `.kindle`
 2. Filtering by Browser: `.opera`
 3. Filtering by Browser and Version: `.ie.v7`
 4. Filtering by Platform and Browser: `.win.ie`
 5. Filtering by Platform, Browser and Version: `.win.ie.v8`
 6. .Platform.Browser.Version #id .class { display:block; }

So, this way you can apply CSS3 patches seamlessly…

`/* fallback/image non-cover color & fallback image & W3C Markup */

  element { background-color: #1a82f7; background-image: url(‘images/fallback-gradient.
png’); background-image: linear-gradient(to bottom, #FFFFFF 0%, #00A3EF 100%); }

/* Safari + Chrome + iPhone + iPad */
 .safari #element, .chrome #element, .iphone#
element, .ipad #element { background-image: -webkit-gradient(linear, 0% 0%, 0% 100%,
from(#2F2727), to(#1a82f7)); background-image: -webkit-linear-gradient(top, #2F2727,#
1a82f7); }

/* Firefox */
 .firefox #element { background-image: -moz-linear-gradient(top, #
2F2727, #1a82f7); }

/* Opera */
 .opera #element { background-image: -o-linear-gradient(top, #2F2727,#
1a82f7); }

/* IE */
 .ie #element { background-image: -ms-linear-gradient(top, #2F2727, #1a82f7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#2F2727′, endColorstr
=’#1a82f7′, gradientType=’0′); }`

  Something’s messing with my classes or they’re not showing…

Try clearing your caches.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Awebsome! Browser Selector」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Raul Illana ](https://profiles.wordpress.org/raulillana/)

[帮助将「Awebsome! Browser Selector」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/awebsome-browser-selector)

### 对开发感兴趣吗?

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

## 更新日志

#### Future Release

 * Codes managing UI.

#### 2.2

 * Updated PhpUserAgent.
 * Added consoles platform styles.

#### 2.1

 * Fixed readme.txt.
 * Fixed BuddyPress support.
 * Removed webkit and gecko generic classes (use browser specific classes instead).

#### 2.0

 * Revamped code using WP API’s and OOPHP.
 * Revamped UA parsing code.
 * Revamped docs.
 * Removed all the cache messy stuff added on v1.1 (sorry [@jrevillini](https://profiles.wordpress.org/jrevillini/)!).

#### 1.2.1

 * Fixed working bug.

#### 1.2

 * Fixed some coding bugs.
 * Added more code comments.

#### 1.1

 * Updated readme.txt.
 * Fixed BuddyPress support (kudos [@landwire](https://profiles.wordpress.org/landwire/)!).
 * Fixed caching bug for WP Super Cache and W3 Total Cache incompatibility (kudos
   [@jrevillini](https://profiles.wordpress.org/jrevillini/)!).

#### 1.0.1

 * Updated descriptions.

#### 1.0

 * Born with basic functionality and docs.

## 额外信息

 *  版本 **2.2**
 *  最后更新：**14 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.4.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/awebsome-browser-selector/)
 * 标签
 * [awebsome](https://cn.wordpress.org/plugins/tags/awebsome/)[browser](https://cn.wordpress.org/plugins/tags/browser/)
   [css](https://cn.wordpress.org/plugins/tags/css/)[selector](https://cn.wordpress.org/plugins/tags/selector/)
   [specific](https://cn.wordpress.org/plugins/tags/specific/)
 *  [高级视图](https://cn.wordpress.org/plugins/awebsome-browser-selector/advanced/)

## 评级

 5 星（最高 5 星）。

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

[您的评价](https://wordpress.org/support/plugin/awebsome-browser-selector/reviews/#new-post)

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

## 贡献者

 *   [ Raul Illana ](https://profiles.wordpress.org/raulillana/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=G442YSKBRKTJ2)