/* 设备竖屏时调用该段css代码 */@media all and (orientation : portrait){body{ background-color:blue; }}/* 设备横屏时调用该段css代码 */@media all and (orientation : landscap....
                            
                            
                                分类:
移动开发   时间:
2015-08-20 22:11:56   
                                阅读次数:
208
                             
                    
                        
                            
                            
                                ios设备支持旋转的方法:
  1、修改工程的info.plist中"Supported interface orientations"的值(一般在工程的Taget-> General -> Deployment Info -> Device Orientation处打钩来选择设备支持)。
  2、实现工程的AppDelegate文件中的(application:supportedInterf...
                            
                            
                                分类:
移动开发   时间:
2015-04-21 20:51:56   
                                阅读次数:
143
                             
                    
                        
                            
                            
                                最近遇到ios设备竖屏切换到横屏时候,字体会发生变化的情况。用以下方法可以解决此类问题-webkit-text-size-adjust : none ;-moz-text-size-adjust : none ;-ms-text-size-adjust : none ;text-size-adjus...
                            
                            
                                分类:
移动开发   时间:
2015-02-09 18:12:26   
                                阅读次数:
277
                             
                    
                        
                            
                            
                                1)设置竖屏/横屏->竖屏@mediascreenand(orientation:portrait){...}@mediascreenand(orientation:portrait){.a .b{position:static;clear:both;float:right;padding-top:...
                            
                            
                                分类:
移动开发   时间:
2014-11-19 12:06:26   
                                阅读次数:
161
                             
                    
                        
                            
                            
                                /* 设备竖屏时调用该段css代码 */	@media all and (orientation : portrait){	body{ background-color:blue;	}	}	/* 设备横屏时调用该段css代码 */	@media all and (orientation : la.....
                            
                            
                                分类:
移动开发   时间:
2014-08-21 18:34:54   
                                阅读次数:
345