You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

WordPress Elementor图片大小无法修改问题求助

环境信息
  • WordPress 6.5.3
  • Elementor 版本 3.21.8
  • 使用Elementor制作销售页,选用免费Elementor模板,页面设置中选择了「Canva Elementor」模板
    ![页面设置选择Canva Elementor模板的截图]
问题描述

无论在Elementor中选择什么尺寸,WebP图片始终保持相同大小
![Elementor中调整图片尺寸但无变化的截图]

已执行排查操作
  • 检查代码发现图片元素类设置为width:100%
    ![图片元素CSS样式截图]
  • 检查主题自定义CSS,代码如下:
.site-title{display:none;}
.elementor-224 {
    max-width: 100%!important;
}
.style-two .header-bottom {
    padding-top: 0px;
    padding-bottom: 0px;
}
.main-navigation ul li {
    font-size: 1em!important;}
.header-social ul li {
    font-size: 1em!important;
}
.footer-t {
    
    padding-top: 30px!important;
    padding-bottom: 30px!important;
    padding-left: 30px!important;
    padding-right: 30px!important;
}
.widget {
    margin: 0 0 10px 0!important;
}
.footer-b{display:none;}

.wpcf7-form-control.wpcf7-text{
    width:300px!important;
    font-size:1.1em!important;
}

.inline_textfield{
    display:inline-block;
        margin-left: 5px;
    margin-right: 5px;
}

.post-thumbnail .svg-holder {
    width: 150px; /* Adjust the width as needed */
    height: 150px; /* Adjust the height as needed */
}
.post-thumbnail .fallback-svg {
    width: 100%; /* Ensure the SVG scales properly */
    height: 100%; /* Ensure the SVG scales properly */
}
  • 清除缓存、更换浏览器(Firefox、IE、Chrome),问题依旧
  • 切换Twenty主题、更新Elementor、禁用其他插件、替换为PNG图片,问题仍未解决
推测

Elementor存在bug或遗漏了参数设置


内容的提问来源于stack exchange,提问作者Gauthier Buttez

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 19:42:27