Ant Design Vue a-modal自适应图片大小设置
将a-modal组件的style属性修改为以下内容:\n\n\nstyle="width: auto; height: auto; max-width: 100%; max-height: 100%;"\n\n\n这样设置后,a-modal会根据图片大小自动调整宽度和高度,并且不会超过父元素的宽度和高度。
原文地址: https://www.cveoy.top/t/topic/pyRj 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
将a-modal组件的style属性修改为以下内容:\n\n\nstyle="width: auto; height: auto; max-width: 100%; max-height: 100%;"\n\n\n这样设置后,a-modal会根据图片大小自动调整宽度和高度,并且不会超过父元素的宽度和高度。
原文地址: https://www.cveoy.top/t/topic/pyRj 著作权归作者所有。请勿转载和采集!