Title: Browser Specific CSS
Author: Adrian Hanft
Published: <strong>2009 年 12 月 13 日</strong>
Last modified: 2013 年 11 月 2 日

---

搜索插件

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

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

# Browser Specific CSS

 作者：[Adrian Hanft](https://profiles.wordpress.org/adrian3/)

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

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

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

## 描述

The Browser Specific CSS plugin is a tool that allows developers to easily target
different browsers straight from the stylesheet. Browser Specific CSS adds a short
javascript to the head of your page that enables you to use browser specific css
selectors. For example, targeting Internet Explorer 7 from your stylesheet is just
a matter of defining styles with a “.ie7” selector. Every major browser is supported
including code for targeting Macs, PCs, and Linux operating systems.

This plugin uses the javascript written by [Rafael Lima](http://rafael.adm.br/css_browser_selector/).
No changes have been made to his code, and all the credit goes to him. Thanks, Rafael!

Changelog:
 Version 0.3 – Update for compatibility with WordPress 2.9

Version 0.2
 – Corrected readme file.

Version 0.1
 – Features of the first version of this plugin include the ability 
to turn the plugin on and off and to specify a separate stylesheet.

## 屏幕截图

 * [[
 * This screenshot shows the “settings” panel for the Browser Specific CSS plugin.

## 安装

Installing Browser Specific CSS is very easy and do not require any template modification
in most cases. Just follow these steps:

 1. Upload the folder ‘browser_specific_css’ to the ‘/wp-content/plugins/’ directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Under “settings” you will see a “Browser Specific CSS” link that you can click 
    on to access the Browser Specific CSS Plugin settings. This screen will give you
    a list of browser specific css selectors that you can begin to use in your stylesheet(
    s)

## 常见问题

  How does this plugin work?

Browser Specific CSS links to a javascript that enables you to target specific different
browser and operating systems using simple css selectors.

  What is a CSS Selector?”

A CSS Selector is a basic stylesheet concept. If you don’t understand CSS this plugin
probably isn’t for you.

  Does this plugin work if a visitor has javascript disabled?”

Since this plugin uses a javascript, it won’t target browsers that have javascript
disabled. Depending on who you ask, this might affect 5% of your visitors. In this
case, you can use the .no_js selector to target these users.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Adrian Hanft ](https://profiles.wordpress.org/adrian3/)

[帮助将「Browser Specific CSS」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/browser-specific-css)

### 对开发感兴趣吗?

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

## 额外信息

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

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Adrian Hanft ](https://profiles.wordpress.org/adrian3/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=designer%40adrianhanft%2ecom&lc=US&item_name=Wordpress%20Plugin%20Development&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)