screen-pl
v1.0.4
Published
移动设备WEB横屏或竖屏显示模式提示,现代浏览器版本判断,mobile screen portrait or landscape,Support android version 4.4+ and ios advanced version,Modern browser version judgment
Downloads
6
Maintainers
Readme
screen-PL.js
A JavaScript min library,You can use it in the mobile device browser , Configure the mode of landscape or portrait display for the mobile device interface,Support android version 4.4+ and ios advanced version. It can also be used as a browser version query,Support for modern browsers IE11+,Edge,Chrome,Firefox,Safari,webkit system.
Install
npm install screen-pl --save
Usage
The package adds a global variable, which is a method that is started by default in portrait mode,landscape mode is required for startup [true,false], PC mode is required for startup [false].
###JavaScript:
var screenpl = require('screen-pl');
or
import screenpl from 'screen-pl';
screenpl();
###css The background can be custom
background-image:url('');