【发布时间】:2016-05-02 23:08:20
【问题描述】:
对不起,如果问题很简单,但我是使用 materializeCss 的新手
因为我可以增加模态物化css的高度和宽度??
【问题讨论】:
-
添加so代码以便我们提出答案。
标签: javascript html materialize
对不起,如果问题很简单,但我是使用 materializeCss 的新手
因为我可以增加模态物化css的高度和宽度??
【问题讨论】:
标签: javascript html materialize
为了设置MaterializeCSS Modal的高度和宽度,你需要编辑
的CSS.modal { width: 75% !important ; height: 75% !important ; } /* increase the height and width as you desire */
在此处查看 pihyper 所写的更多解释:https://stackoverflow.com/a/34580086/3133641
【讨论】:
要仅删除垂直高度,请在模态类中添加它。只需确保此定义不会被覆盖(避免使用 !important 并改用特异性)。
.modal { max-height: 100%; overflow: visible}
【讨论】:
我认为接受的报价不是最好的。使用 chrome 开发者工具或只添加特定的模态 ID。你可能有不止一个
div#modal5 {
width: 50%
}
【讨论】:
set your modal class to this code.
.modal-info {
max-width: 100% !important;
max-height: 100% !important;
overflow-y: auto;
}
【讨论】: