Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
fb.ui メソッド フィードに問題があります。スポンサー/広告パネルによってポップアップ ダイアログ幅の 30% が隠されているようです。ポップアップの幅と高さを指定する方法があることは知っていますが、z-index 2000 などの上部に配置するオプションが必要です。どうやってやるの?
これがそのスクリーンショットです!
CSSを使用してこの問題を解決しました。Facebook ダイアログは、iFrame をラップする div のコレクションです。CSS の !important 属性を利用することで、ダイアログ ボックスのサイズを制御することができました。
.fb_dialog, .fb_dialog_iframe iframe { width: 400px !important; }
もちろん、幅の値をアプリケーションに適した値に設定する必要があります。