使用下面不起作用的代码
var supportsOrientationChange = "onorientationchange" in window,
orientationEvent = supportsOrientationChange ? "orientationchange" : "resize";
window.addEventListener(orientationEvent, function() {
var height= window.innerHeight;
$contentDivsContainer.height(height);
}, false);