[wordpress插件] Browser and Operating System Finder浏览器和操作系统查找器

wordpress 插件 文章 2020-03-11 20:10 438 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

This plugin is used to add browser name and OS name in body tag class attribute

此插件用于在body标签类属性中添加浏览器名称和操作系统名称


For e.g:


例如:

browser-firefox os-windows”>

browser-firefox os-windows”>

browser-chrome os-apple”>

browser-chrome os-apple”>

browser-safari os-iphone”>

browser-safari os-iphone”>

browser-chrome os-android”>

browser-chrome os-android”>

This can help in creating responsive websites when website on some device is causing issues but in some device website is working perfectly.

当某些设备上的网站引起问题但某些设备上的网站运行正常时,这可以帮助创建响应式网站。

So we can use this in CSS as:

因此我们可以在CSS中将其用作:

.browser-firefox.os-windows{

.browser-firefox.os-windows {

//Your CSS

//您的CSS

}

}

and for same browser and other OS

并针对相同的浏览器和其他操作系统

.browser-firefox.os-apple{

.browser-firefox.os-apple {

//Your CSS

//您的CSS

}

}

安装步骤

To install this plugin follow below steps

要安装此插件,请按照以下步骤操作

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

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

    5. Use the ‘Settings->Browser Finder’ screen to configure the plugin settings
    6. 使用“设置->浏览器查找器”屏幕来配置插件设置

    7. Now check the html body tag to find browser name and OS name added in class attribute
    8. 现在检查html正文标记以查找添加到class属性中的浏览器名称和操作系统名称

下载地址
https://downloads.wordpress.org/plugin/browser-and-operating-system-finder.zip
-EOF-

AI助手支持GPT4.0