在小屏幕設備上顯示時,我遇到了ModalPopupExtender的問題。模態高度不會重新縮放以適合可查看的窗口。因爲它是以模式的頂部和底部爲中心進行裁剪的。試圖滾動它只滾動底層頁面而不是模式。任何人遇到這個問題或者對修復有什麼建議?Mobile ModalPopupExtender?
1
A
回答
1
我決定用一系列的媒體查詢處理呢....
.sModalCnt {max-height:480px;overflow-y:auto}
@media only screen and (max-height:600px) {
.sModalCnt {max-height:380px}
}
@media only screen and (max-height:500px) {
.sModalCnt {max-height:280px}
}
@media only screen and (max-height:400px) {
.sModalCnt {max-height:180px}
}
@media only screen and (max-height:300px) {
.sModalCnt {max-height:80px}
}
1
你必須設置小狗的面板使用滾動條。 有這樣做的2路:使用CSS和overflow
到auto
:
- 設置固定
height
(500px
前)。 - 使用JavaScript計算高度傀儡,您仍然必須使用CSS將
overflow
設置爲auto
。
這裏是一個JavaScript函數的例子,它將高度設置爲頁面高度的90%。
function pageLoad() {
$get('<%= Panel.ClientID %>').style.height = document.documentElement.clientHeight * 0.9 + "px";
}
相關問題
- 1. ModalPopupExtender Gridview
- 2. ModalPopupExtender不回發
- 3. ASP.NET - 動態ModalPopupExtender
- 4. ASP.NET MVC和ModalPopupExtender
- 5. ModalPopupExtender GridView ItemTemplate
- 6. ModalPopupExtender OnShow事件?
- 7. Asp.net ModalPopupExtender回傳
- 8. ModalPopupExtender和IE 6
- 9. AjaxToolKit ModalPopupExtender + AnimationExtender
- 10. ModalPopupExtender和z-index
- 11. ASP.NET ModalPopupExtender問題
- 12. ModalPopupExtender問題
- 13. ASP.NET + ModalPopupExtender + Click事件
- 14. ModalPopupExtender按鈕問題
- 15. 的RequiredFieldValidator提示ModalPopupExtender
- 16. modalpopupextender asp.net usercontrol頁面
- 17. 閃光重疊ModalPopupExtender
- 18. 如何重置ModalPopupExtender?
- 19. Modalpopupextender不起作用
- 20. GridView的一個ModalPopUpExtender內引起ModalPopUpExtender關閉
- 21. 將ModalPopupExtender放置在另一個ModalPopupExtender上方
- 22. 如何在ModalPopupExtender在gridview中時使用Ajax ModalPopUpExtender的.show()?
- 23. 將數據傳遞到ModalPopupExtender
- 24. ModalPopupExtender和RequiredFieldValidator在面板上
- 25. ModalPopupExtender隱藏在IFrame後面
- 26. Modalpopupextender面板,進入gridview
- 27. modalpopupextender調整屏幕大小?
- 28. ModalPopupExtender不顯示任何
- 29. Ajax ModalPopupExtender回傳滾動條
- 30. ASP.NET Ajax和ModalPopupExtender不顯示
我對數字1的變化去了。 –