首页 文章

视觉作曲家行中的空格

提问于
浏览
1

我的wordpress主题中的视觉作曲家行有一个奇怪的问题 .

块设置为全宽,但在RTL版本中VC行显示左右两侧的空白区域 .

你能帮我解决这个问题吗?我试图编辑边距和填充但无法修复它 .

谢谢 .

2 回答

  • 2

    在style.css上创建一个有用的类 . 现在转到您的页面部分 . 查看具有html视图的页面或原始代码查找 div class section-focus bg-dark ,在此之前您还有另一个 div class wpb_column col-md-12 .

    .nopadding{
     padding-left: 0;
     padding-right: 0;
    }
    

    像这样添加这个nopadding类

    <div class="wpb_column col-md-12 nopadding"><!-- Here you need to add that no padding class-->
    <div class="section-focus bg-dark">
    

    如果你正确添加这个,你将得到没有空白 .
    This
    如果没有't work then try with !important like [if you have custom css file then you don' t需要使用!important]

    .nopadding{
     padding-left: 0 !important;
     padding-right: 0 !important;
    }
    
  • 2

    在你的CSS中,你应该如上所述使用类似下面的内容 .

    .no-padding-margin {
         padding-left: 0;
         padding-right: 0;
         margin-left: 0;
         margin-right: 0;
    }
    

    Visual Composer,行设置

    Visual Composer, row settings

    应该在VC行中添加.no-padding-margin类 . 上面我已经包含了一个图像,它是ROW设置的一部分 .

    Visual Composer,将行添加到行设置

    Visual Composer, add class to row settings

相关问题