如果问题很简单,我很抱歉,但我是使用物化通道的新手
因为我可以增加模态实体的高度和宽度??
为了设置MaterializeCSS模式的高度和宽度,您需要编辑的CSS
.modal { width: 75% !important ; height: 75% !important ; } /* increase the height and width as you desire */
点击此处查看pihyper撰写的更多解释:https://stackoverflow.com/a/34580086/3133641
若要仅删除垂直高度,请将其添加到模态类中。只需确保此定义不会被覆盖(避免使用!important,而是使用specification)。
.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;
}