B. *_*non 5 javascript jquery screen-orientation jquery-mobile landscape-portrait
我想有条件地改变用户在我要创建的照片库网站上看到的内容,具体取决于用于查看网站的设备是纵向/垂直还是横向/水平模式/方向.这可能吗?
尝试orientationchange事件处理程序,如下所示:
$(window).bind("orientationchange", function(evt){
    alert(evt.orientation);
});
这是关于检测和触发事件的jQuery Mobile条目orientationchange.
| 归档时间: | 
 | 
| 查看次数: | 12193 次 | 
| 最近记录: |