1.0.4 • Published 3 years ago

screen-pl v1.0.4

Weekly downloads
3
License
ISC
Repository
-
Last release
3 years ago

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('');