我的wordpress主题中的视觉作曲家行有一个奇怪的问题 .
块设置为全宽,但在RTL版本中VC行显示左右两侧的空白区域 .
你能帮我解决这个问题吗?我试图编辑边距和填充但无法修复它 .
谢谢 .
在style.css上创建一个有用的类 . 现在转到您的页面部分 . 查看具有html视图的页面或原始代码查找 div class section-focus bg-dark ,在此之前您还有另一个 div class wpb_column col-md-12 .
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">
如果你正确添加这个,你将得到没有空白 . 如果没有'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; }
在你的CSS中,你应该如上所述使用类似下面的内容 .
.no-padding-margin { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
Visual Composer,行设置
应该在VC行中添加.no-padding-margin类 . 上面我已经包含了一个图像,它是ROW设置的一部分 .
Visual Composer,将行添加到行设置
2 回答
在style.css上创建一个有用的类 . 现在转到您的页面部分 . 查看具有html视图的页面或原始代码查找
div class section-focus bg-dark
,在此之前您还有另一个div class wpb_column col-md-12
.像这样添加这个nopadding类
如果你正确添加这个,你将得到没有空白 .
如果没有't work then try with !important like [if you have custom css file then you don' t需要使用!important]
在你的CSS中,你应该如上所述使用类似下面的内容 .
Visual Composer,行设置
应该在VC行中添加.no-padding-margin类 . 上面我已经包含了一个图像,它是ROW设置的一部分 .
Visual Composer,将行添加到行设置