php - WordPress 二十四 : Make separation between posts thicker

标签 php css wordpress wordpress-theming

我想让帖子之间的线条更粗更明显。现在他们很好。

我试过这段代码,我在 wordpress 论坛上得到了它,但它不起作用:

.list-view #content .hentry.has-post-thumbnail{
   border-top: 100px solid rgba(1, 0, 0, 1);
   padding-top: 100px;
}

谢谢。

最佳答案

您的样式不起作用,因为该页面上的所有帖子都没有 has-post-thumbnail 类,删除该类将显示较粗的 border-top

.list-view #content .hentry
{
   border-top: 100px solid rgba(1, 0, 0, 1);
   padding-top: 100px;
}

关于php - WordPress 二十四 : Make separation between posts thicker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25266394/

相关文章:

php - 将数组转换为 ul li 列表

php - 我如何将其绑定(bind)到 JQUERY 中的 onclick 事件?

html - 根据生成的内容制作宽度 %

javascript - WordPress Revolution slider : Unmuting failed and the element was paused instead because the user didn't interact with the document before

php - 如何在php中实现倒计时

css - Ionic-Toggle 每侧都有标签

jquery:为什么 css ('width' ) 返回与 width() 不同的值

html - 内部左浮动 div 不会垂直扩展容器 div

javascript - 如何使用 wordpress 在点击时播放 GIF(如 9GaG.com)?

php - Laravel 更改密码重置响应