Abigale's Blog


  • Home

  • Categories

  • Archives

  • Tags

  • About

  • Search

js判断屏幕大小

Posted on 2017-03-09 | In Front-End |

js代码:

1
2
3
4
5
6
7
8
let screenWidth = document.body.clientWidth;
if (screenWidth < 768) {
}
if (screenWidth >= 768 && screenWidt < 992) {
}
if (screenWidth >= 992) {
}

项目总结
JS的组成:ECMAScript、BOM和DOM
Abigale

Abigale

56 posts
4 categories
32 tags
© 2015 — 2018 Abigale
欢迎你呀 小伙伴 ^_^