Legacy Knowledge Base
公開されました Jul. 2, 2025

Chrome、Edge で横向きの印刷レイアウトが見つからない

Written By

Gábor Komáromi

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • Chrome/Edge 印刷 (CTRL+P) では、ポートレート モードしか使用できないため、ランドスケープ レイアウトの選択は使用できません。

Environment

  • Liferay DXP 7.0+
  • Google Chrome または Microsoft Edge

解決策

  • この問題は Chrome と Edge にのみ存在し、@page at-rule の サイズ記述子がこの動作の原因です。 @page {size: a3; に設定されています。デフォルトではです。
  • Firefox や IE とは互換性がないため、無視されます。
  • 行:@ページ {サイズ: 自動; }、ポータルの設定ページ → ルック アンド フィールに挿入でき、'テーマの後に読み込まれるカスタム CSS を挿入します。 フィールドに入力し、デフォルト値を上書きすることで問題を解決します。
  • これは、 @page {size: auto; を追加することにより、カスタム テーマの _custom.scss ファイルでも上書きできます。 }行。

Did this article resolve your issue ?

Legacy Knowledge Base