表格和img标签的最大宽度的CSS样式

问题描述

我的完全相同的代码在本地主机上的屏幕尺寸 350px时工作正常。但这在实时网站上不起作用,在该网站上,表格的宽度不受屏幕尺寸的影响。 有什么吗?

@media only screen and (min-width:350px) and (max-width: 500px) {
    .card-body-content table {
        max-width: 300px!important;
        margin-right: auto;
        margin-left: auto;
    }
    .card-body-content img {
        max-width: 300px!important;
        margin-right: auto;
        margin-left: auto;
    }
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...