如 codepen 中所示,类 .mdl-dialog__content
不会用作容器并根据图像大小进行调整。不知道如何让它工作。谢谢。
最佳答案
给模态框那个图片作为背景
.mdl-dialog {
background: url('https://static.squarespace.com/static/52536652e4b007332ef4ecf4/52dec946e4b0ca499f87bce7/52dec978e4b0ca499f88ed14/1327377105003/1000w/CIPCreative_WHATEVER60.jpg');
}
或者,如果您想将该图像保留在您的 html 中,请提供图像 width:100%;
关于html - 无法在 Material Design Lite 的对话框模式中插入图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38984156/