标签: landscape

我们可以使用媒体查询/js/jquery 让我们的网页在手机/平板电脑上默认以横向模式打开吗?

即使使用 css3 媒体查询或 jquery 关闭屏幕方向,是否可以使我的网页在手机或平板电脑中默认以横向模式打开?

css landscape media-queries responsive-design

3
推荐指数
1
解决办法
2648
查看次数

标题与 longtable Latex 横向模式下的表格不对齐

在我的长表中,当我使用横向模式时,标题与表格宽度不对齐。虽然当我删除横向模式时,它很好。然而,我的桌子又宽又长,我需要将其与横向模式对齐。这是一个 MWE,请帮帮我。

谢谢

\documentclass{article}
\usepackage{lipsum} % Just to fill some paragraph with random texts.
\usepackage[margin=1in,left=1.5in,includefoot]{geometry} % Setup the margin of the document \usepackage{float}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{tabu, colortbl}
\usepackage{array}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{lscape}
\usepackage[referable]{threeparttablex}
\usepackage{amsmath}
\usepackage{parskip}
\usepackage{xcolor}
\usepackage{setspace}

\renewcommand{\arraystretch}{1.5}
\setlength{\tabcolsep}{2pt}
\tabulinesep=1mm

\usepackage{ltcaption}
% The ltcaption package supports \CaptionLabelFont & \CaptionTextFont introduced by the NTG document classes
%\renewcommand\LTcaptype{table}
\renewcommand\CaptionLabelFont{\normalsize}
\renewcommand\CaptionTextFont{\normalsize}

\setlength{\LTcapwidth}{\textwidth} % caption width is same as table width
\setlength\LTcapskip{0.25em} % otherwise caption will skip baseline between caption and content

\renewcommand{\arraystretch}{1.5} % Insert …
Run Code Online (Sandbox Code Playgroud)

latex landscape caption longtable

3
推荐指数
1
解决办法
3991
查看次数

支持的方向与应用程序没有共同的方向,并且 [RCTModalHostViewController shouldAutorotate] 返回 YES

我在 iOS 上有本机反应的应用程序,我通过执行以下操作将其锁定在横向模式:

componentDidMount() {
Orientation.lockToLandscape()
}
Run Code Online (Sandbox Code Playgroud)

我添加了一个弹出窗口,但是当我按下它时,我收到了这个错误:

 Exception thrown while executing UI block:
 Supported orientations has no common orientation with the application,
 and [RCTModalHostViewController shouldAutorotate] is returning YES
Run Code Online (Sandbox Code Playgroud)

在 app.delegate 上我添加了这个功能:

 - (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
while ([[UIDevice currentDevice] isGeneratingDeviceOrientationNotifications]) {
[[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications];
 }

 return [Orientation getOrientation];
   }
Run Code Online (Sandbox Code Playgroud)

在肖像上这个错误没有发生

怎么解决。。。谢谢

landscape popover ios react-native

3
推荐指数
1
解决办法
870
查看次数

使用abcPDF打印landscape html-> pdf

我想从html输出中获取由abcPDF生成的PDF,以纵向打印前三页,然后将第四页切换为横向.

通过将此类应用于第4页的div,我已经能够将html切换到第四页的横向:

.PageLandscape {
    width="100%";
    height="100%";
    filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=3);
    size:landscape;
}
Run Code Online (Sandbox Code Playgroud)

当abcPDF将html转换为pdf时,第4页仍然是portait.

有什么想法或提示吗?

谢谢!

html css landscape abcpdf

2
推荐指数
1
解决办法
4492
查看次数

在Interface builder中将label旋转到横向

我只需要界面构建器的帮助.我试图只旋转我的应用程序的标签,但我无法找到任何旋转功能..

任何人都可以帮我旋转标签,我需要在xcode中旋转代码吗?

xcode label landscape rotation interface-builder

2
推荐指数
2
解决办法
4375
查看次数

如何将XIB置于景观中

嘿,我正在制作基于视图的应用程序.对于其中一个xib文件,我希望它仅以横向模式显示.我该怎么做呢?

iphone landscape xib

2
推荐指数
1
解决办法
4210
查看次数

在景观模式下,搜索栏和表格视图不适合屏幕

我正在使用以下代码以编程方式创建搜索栏和表视图

UISearchBar* searchBar = [[UISearchBar alloc]initWithFrame:CGRectMake(0,0,320,40)];
searchBar.delegate = self;
[self.view addSubview:searchBar];

UITableView* tblView = [[UITableView alloc]initWithFrame:CGRectMake(0, 41, 320, 400)];
tblView.delegate = self;
tblView.dataSource = self;
[self.view addSubview:tblView];
Run Code Online (Sandbox Code Playgroud)

现在我在下面的方法中使返回值为yes以旋转设备方向的屏幕

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{

    return YES;
}
Run Code Online (Sandbox Code Playgroud)

我使用下面的代码 loadView

self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
Run Code Online (Sandbox Code Playgroud)

以下是我的输出

在此输入图像描述 但仍然搜索栏和表格视图不适合横向模式的屏幕,我应该做什么可以任何人帮助我,, thanx提前

iphone xcode landscape objective-c uiinterfaceorientation

2
推荐指数
1
解决办法
320
查看次数

如何在iphone横向模式下删除UITableview滚动中的空白区域?

在我的tableview中,我已禁用纵向模式下的默认滚动.但是当方向更改为横向模式时,我已启用滚动,以便我可以查看表的整个内容.但是,滚动时,在tableview单元格之前和之后可以看到空白区域.那么,任何人都可以告诉我如何在横向模式下删除表格的默认滚动视图中的这个空白区域吗?我尝试过使用autoresizingmask,并尝试根据横向模式设置的内容大小.两者都不起作用,这是我的代码到目前为止.

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

{

    // Return YES for supported orientations

    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);

  }

-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {

if((self.interfaceOrientation == UIDeviceOrientationLandscapeLeft) || (self.interfaceOrientation == UIDeviceOrientationLandscapeRight)){

        self.tableView.scrollEnabled = YES;

        self.tableView.sectionIndexMinimumDisplayRowCount =5;

       self.tableView.contentSize = CGSizeMake(480, 320);

        self.tableView.autoresizingMask = YES;

       //CGFloat cellHeight;}

    else if((self.interfaceOrientation == UIDeviceOrientationPortrait) || (self.interfaceOrientation == UIDeviceOrientationPortraitUpsideDown)){

        self.tableView.scrollEnabled = NO;

        }
  }
Run Code Online (Sandbox Code Playgroud)

iphone scroll landscape objective-c uitableview

2
推荐指数
1
解决办法
1075
查看次数

Landscape Apps Xcode 5/iOS 7

我在App Store里有一个钢琴应用程序.它适用于横向模式.

在此输入图像描述

现在iOS 7似乎忽略了IB中的Landscape设置

在此输入图像描述

该应用程序在iOS 6及更低版本中可以正常运行.在iOS 7中出现在肖像中.以下是设置和相关代码:

在此输入图像描述 在此输入图像描述

//iOS 6+
- (BOOL)shouldAutorotate
{
    return YES;
}

//iOS 6+
- (NSUInteger)supportedInterfaceOrientations
{
    return (UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight);
}
//iOS 5.1.1-
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
        return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
Run Code Online (Sandbox Code Playgroud)

xcode landscape objective-c ios ios7

2
推荐指数
1
解决办法
6531
查看次数

Xcode中的设备方向似乎无法正常工作

在我的项目中,我只选择了"肖像"和"颠倒"选项.未选中两个横向选项.但是,无论是在设备上还是在模拟器上运行它,无论是向右还是向左转,应用程序都会成为风景.不应该,有什么可能是错的?

landscape orientation ios

2
推荐指数
1
解决办法
883
查看次数