1, 手机端 hover 样式处理方式
给 body 的 ontouchstart 事件绑定一个空的 hander
<body ontouchstart="">
2,pad 页面横屏竖屏媒体查询
landscape mode 是指宽度比高度宽的模式, 也就是俗称的宽屏模式;
portrait mode 是指高度比宽度高的模式, 也就是俗称的竖屏模式;
- @media screen and (orientation:portrait) { // 竖屏
- }
- @media screen and (orientation:landscape) { // 横屏
- }
来源: http://www.qdfuns.com/article/42435/f23de9f24c362807ede03b49b4ee544e.html