ページ内で iframe を使用していますが、ページと iframe は異なるドメインにあります。このサイトはモバイル デバイスを対象としているため、ページの window.orientation プロパティを HTML 投稿メッセージを介して iframe に渡しています。それは機能していますが、iframe の window.orientation プロパティを投稿メッセージから受け取った値に割り当てる方法が必要です。.orientation のようなウィンドウ プロパティを再割り当てすることは可能ですか?
すべての助けに感謝します。
編集: これの目的は、CSS メディア クエリをデバイスの向きに取得して、iframe 内から機能させることです。