在 PowerApps 中更改屏幕的大小和方向Change screen size and orientation in PowerApps

通过更改应用屏幕大小和方向来自定义应用。Customize an app by changing its screen size and orientation.

先决条件Prerequisites

  1. 创建应用或打开应用进行编辑。Create an app, or open one for editing.

  2. 在“文件”菜单上,单击或点击“应用设置”。On the File menu, click or tap App settings.

更改屏幕的大小和方向Change screen size and orientation

  1. 在“应用设置”下,单击或点击“屏幕大小和方向”。Under App settings, click or tap Screen size + orientation.

    更改应用屏幕大小和方向的选项

  2. 在“方向”列表中,单击或点击“纵向”或“横向”。In the Orientation list, click or tap Portrait or Landscape.

  3. (仅适用于平板电脑应用)在“纵横比”下,单击或点击匹配此应用的目标设备的比率。(Tablet apps only) Under Aspect ratio, click or tap the ratio that matches the target device for this app.

    更改平板电脑应用的纵横比

  4. 在“锁定纵横比”下,指定“”或“”。Under Lock aspect ratio, specify either On or Off.

    如果锁定纵横比,应用将保持适合手机的纵横比。If you lock the aspect ratio, the app will retain the appropriate aspect ratio for a phone. 如果该应用在另一种设备上运行,将无法正确显示,并可能会显示意想不到的效果。If the app is running on another kind of device, the app will display incorrectly and may show unwanted results. 如果解锁纵横比,应用将在其运行的设备上调整到该设备的纵横比。If you unlock the aspect ratio, the app will adjust to the aspect ratio of the device on which it's running.

  5. 在“锁定方向”下,指定“”或“”。Under Lock orientation, specify either On or Off.

    如果锁定应用的方向,应用将保持所指定的方向。If you lock the app's orientation, the app will retain the orientation that you specify. 如果应用在具有不同屏幕方向的设备上运行,将无法正确显示,并可能会显示意想不到的效果。If the app is running on a device for which the screen is in a different orientation, the app will display incorrectly and may show unwanted results. 如果解锁应用的方向,应用方向会调整为其运行的设备的屏幕方向。If you unlock the app's orientation, it will adjust to the screen orientation of the device on which it's running.

  6. 选择“应用”,保存所做的更改。Select Apply to save your changes.

下一步Next step

在“文件”菜单上,选择“保存”,重新发布使用新设置的应用。On the File menu, select Save to republish your app with the new settings.