在 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.