[wordpress插件] Conditional Stylesheets and Body Classes条件样式表和正文类

wordpress 插件 文章 2020-03-11 23:30 492 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Easily include browser specific stylesheets in templates or select browser and version specific classes in CSS.

轻松在模板中包含特定于浏览器的样式表,或在CSS中选择特定于浏览器和版本的类。

Conditional browser stylesheets are added after the main theme style.css allowing them to overrule previous rules – you only need to add the CSS rules that should change.

有条件的浏览器样式表是在主主题style.css之后添加的,从而使它们可以取代以前的规则-您只需要添加应更改的CSS规则。

This plugin uses up-to-date WordPress top level functions, sanitizes all input data and is fully internationalized.

此插件使用最新的WordPress顶级功能,对所有输入数据进行清理并完全国际化。

For feature request and bug reports, please use the Q Support Website<

对于功能请求和错误报告,请使用Q支持网站<

/a>.

/ a>。

Please do not use the WordPress.org forum to report bugs, as we no longer monitor or respond to questions there.

请不要使用WordPress.org论坛报告错误,因为我们不再在那里监视或回答问题。

Features

功能

    • Checks for and adds browser and version specific stylesheets – such as “browsers-windows-firefox.css”.
    • 检查并添加特定于浏览器和版本的样式表,例如“ browsers-windows-firefox.css”。

    • Add browser and version specific body classes to all pages – such as body.browsers-msie-10
    • 将浏览器和特定于版本的正文类添加到所有页面,例如body.browsers-msie-10

    • Includes the Mobile Detect class and adds mobile & touch body classes.
    • 包括“移动检测”类并添加移动和触摸式身体类。

    • Adds a post type body class, for example: “posttype-page”.
    • 添加帖子类型的正文类,例如:“ posttype-page”。

    • Inserts handy HTML comments in the HTML footer of template files to tell you which CSS files could be used and which were found.
    • 在模板文件的HTML页脚中插入方便的HTML注释,以告诉您可以使用哪些CSS文件以及找到了哪些CSS文件。

安装步骤

For an automatic installation through WordPress:

通过WordPress自动安装:

    1. Go to the ‘Add New’ plugins screen in your WordPress admin area
    2. 转到WordPress管理区域中的“添加新插件”屏幕

    3. Search for ‘Browsers’
    4. 搜索“浏览器”

    5. Click ‘Install Now’ and activate the plugin
    6. 点击“立即安装”并激活插件

    For a manual installation via FTP:

    对于通过FTP进行手动安装:

      1. Upload the browsers directory to the /wp-content/plugins/ directory
      2. 浏览器目录上载到 / wp-content / plugins / 目录

      3. Activate the plugin through the ‘Plugins’ screen in your WordPress admin area
      4. 通过WordPress管理区域中的“插件”屏幕激活插件

      To upload the plugin through WordPress, instead of FTP:

      要通过WordPress而不是FTP上传插件,

        1. Upload the downloaded zip file on the ‘Add New’ plugins screen (see the ‘Upload’ tab) in your WordPress admin area and activate.
        2. 在WordPress管理区域的“添加新”插件屏幕(请参见“上传”标签)上上传下载的zip文件并激活。

下载地址
https://downloads.wordpress.org/plugin/browsers.0.4.7.zip
-EOF-

AI助手支持GPT4.0