2017-09-12 25 views
1

私はイオン3を使用し、CSSが似ているイオン3応答ポップオーバーサイズ

editOpty(rw){ 
    let popover = this.editOptyPopup.create(EditOptyPopoverComponent, rw, { cssClass: 'edit-opty-popover'}); 
    popover.present({ 

    }); 
    } 

を使用して、固定の高さを持っているポップオーバーを持っています:

.edit-opty-popover .popover-content{ 
     width: 1400px; 
} 

欠点は、固定幅の明白です。私が必要とするのは、ポップアップの幅が画面の幅(何を使用しているか)よりも数ピクセル少ないことです。

答えて

0

ここで%を試すことができます。

.edit-opty-popover .popover-content{ 
     max-width: 90%; 
} 
0

次のことを考えてみましょう:

width:calc(100vw - 5px) 

または

width:calc(100% - 5px) 

あなたの必要性に応じて。

関連する問題