CSS:如何删除Wordpress主题上的边框

时间:2018-06-20 18:40:52

标签: css wordpress wordpress-theming genesis

我正在使用适用于Wordpress的Brunch Pro主题,并且在主页上以及边栏中每个小部件的下方看到一个1px边框。我想摆脱那些。

您可以看到我的网站here。我试图在样式表中编辑这些行,但是没有结果:

.featured-content .entry {
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
  padding-bottom: 20px;
}

.sidebar .widget {
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
  padding-bottom: 40px;
}

肯定有些我不理解的东西。这个主题将我所有的帖子加载到小部件区域,这是我不习惯的。有人可以帮我吗?

3 个答案:

答案 0 :(得分:2)

您的style.css文件仍然显示为border-bottom: 1px solid #eee;,您确定所做的更改已提交吗?

您最好在网站的外观> 自定义程序> 其他CSS 部分中添加以下内容:

.sidebar .widget,
.featured-content .entry {
    border-bottom: 0;
}

答案 1 :(得分:0)

在您的styles.css中更改

.featured-content .entry {
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.sidebar .widget {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 40px;
}

.featured-content .entry {
    border-bottom: 0;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.sidebar .widget {
    border-bottom: 0;
    margin-bottom: 20px;
    padding-bottom: 40px;
}

答案 2 :(得分:0)

尝试设置result = 2×2 cell array {'poly1'} {'poly2'} {'poly2'} {'poly4'}

如果被WordPress覆盖,请执行以下操作:border: none;