2
A
回答
3
你可以用CSS设置:
@media only screen and (orientation:portrait){
html body * {
display:none;
}
}
@media only screen and (orientation:landscape){
/* your CSS */
}
在波泰特模式下,所有elemnts将被隐藏。您可以设置<div>Switch to landscape</div>
将只显示在波泰特模式
2
Safari的界面仍然会在纵向模式下,它的具有高度设置为100%的问题,但你可以在纵向模式时,这样
旋转整个html元素html, body {
height: 100%;
}
@media screen and (orientation: portrait){
html {
-webkit-transform: translateY(-100%) rotate(90deg);
transform: translateY(-100%) rotate(90deg);
-webkit-transform-origin: left bottom;
transform-origin: left bottom;
}
}
相关问题
- 1. UIModalPresentationFormSheet在横向模式下的iPad
- 2. Ipad以肖像模式居中,在横向模式下工作
- 3. 仅在横向模式下显示容器视图
- 4. 强制UIViewController只显示在横向模式
- 5. 我可以在iPad上显示“小”320x50 iAd横幅吗?
- 6. 我可以强制ASP.Net网站在特定时区显示时间吗?
- 7. iOS - iPad Air和iPad Pro仅在横向设备中强制设备方向
- 8. iPad:我可以仅在界面制作工具中处理横向,纵向方向吗? (非编程)
- 9. 如何在横向模式下制作ipad应用程序
- 10. 强制UISplitViewController始终仅在横向上显示主(仅在iPhone 6 Plus上)
- 11. 强制UIAlertView进入横向模式
- 12. 如何强制TextField在横向模式下完全拉伸
- 13. iphone - 强制MPMoviePlayerController在横向模式下播放视频
- 14. 在iPad上,横向模式下的数字应该显示哪个键盘?
- 15. 如何仅在横向模式下限制j2me应用程序
- 16. 我可以在ListView的详细模式下显示链接吗?
- 17. iPad:仅将UIView方向锁定为横向模式
- 18. 而在横向模式在iPad上
- 19. 如何强制iPad Safari不以纵向模式缩小我的网页?
- 20. 是否可以在横向模式下隐藏SplitView iPad应用程序的RootViewController?
- 21. 在横向和纵向模式下启动iPad应用程序
- 22. 在iPad中锁定横向模式
- 23. 我可以强制网站返回Content-Disposition标头吗?
- 24. 在iphone中在横向模式下显示modalviewcontroller的问题?
- 25. UIViews在横向模式下显示在错误的位置
- 26. 即使ipad面向横向显示横向右视图
- 27. 以纵向模式录制实时流式视频,但在YouTube中以浏览器显示横向模式
- 28. 强制UIImagePickerController以横向模式拍摄视频
- 29. 强制的Windows Mobile 6应用程序以横向模式
- 30. 我可以自己制作网站吗?
,将在波泰特模式做什么?什么都不显示 – laaposto 2014-10-31 15:26:15
我的猜测是使用媒体查询来显示/隐藏基于宽度的内容。但那是在黑暗中拍摄的。你能提供更多细节吗? – trnelson 2014-10-31 15:27:11
if screen.height> screen.width show icon把ipad变成风景? – Stefan 2014-10-31 15:27:54