Skip to content

binnng/device.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

device.js

设备检测,并主动添加到html的className中,方便css控制。

device.js

特性

  • IsTouch
  • IsAndroid
  • IsIPad
  • IsIPhone
  • IsIOS
  • IsWinPhone
  • IsWebapp
  • IsXiaoMi
  • IsUC
  • IsWeixin
  • IsBaiduBox
  • IsBaiduBrowser
  • IsChrome
  • IsPC
  • IsHTC
  • IsBaiduWallet
  • IsDebug

欢迎Fork扩展补充,多谢!

demo

Demo