码迷,mamicode.com
首页 > 移动开发 > 详细

Firefox mobile (android) and orientationchange

时间:2014-11-28 18:11:17      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:android   style   blog   io   ar   color   sp   for   on   

Firefox for Android does not support the orientationchange event but you can achieve the same result by using media query listeners.

var mqOrientation = window.matchMedia("(orientation: portrait)");

// The Listener will fire whenever this either matches or ceases to match
mqOrientation.addListener(function() { self.handleViewportChange(); });

 

Firefox mobile (android) and orientationchange

标签:android   style   blog   io   ar   color   sp   for   on   

原文地址:http://www.cnblogs.com/hejia/p/4129024.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!