[wordpress插件] CSSUA enqueued in your WebsiteCSSUA入队您的网站

wordpress 插件 文章 2020-04-06 08:10 495 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin enqueues the cssua.js into the website which then adds all the Browser, OS and Device related classes to the HTML tag.

此插件使cssua.js进入网站,然后将所有与Browser,OS和Device相关的类添加到HTML标记中。

You can use these classes to apply css, specific to Browser, OS or Device.

您可以使用这些类来应用特定于浏览器,操作系统或设备的CSS。

For Example: if you want the font-size of H1 tag to be smaller in Chrome Browser then you can do it in the following way.

例如:如果您希望在Chrome浏览器中缩小H1标签的字体大小,则可以按以下方式进行操作。

.ua-chrome h1{ font-size: 20px;

.ua-chrome h1 {font-size:20px;

}

}

Learn more about cssua.js at http://cssuseragent.org/.

在http://cssuseragent.org/上了解有关cssua.js的更多信息。

Thanks to author for building such a powerful javascript library.

感谢作者构建了如此强大的javascript库。

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

    1. Upload the plugin files to the /wp-content/plugins/cssuaews directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / cssuaews 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

    5. That’s it.

    6. 就是这样。

      Now open the front end of you website and check the HTML tag.

      现在打开您网站的前端并检查HTML标签。

      It should now have all the Browser, OS and Device related classes added to it.

    7. 现在应该已经添加了所有与浏览器,操作系统和设备相关的类。

下载地址
https://downloads.wordpress.org/plugin/cssua-enqueued-in-your-website.zip
-EOF-

AI助手支持GPT4.0