如何识别这个元素?

时间:2016-10-28 03:06:10

标签: html css

我网站上每篇博文的底部都有两条灰色线条(主索引中也有1条)

我无法使用"检查"功能 - 如何删除它们?

示例帖子:

http://nickgray.net/curb-your-dog/

2 个答案:

答案 0 :(得分:2)

.blog .hentry, .archive .hentry, .single-post .hentry {
    border-bottom: 0px !important;
}

#jp-relatedposts h3.jp-relatedposts-headline em:before {
    border-top: 0px !important;
}

将这些行添加到样式表中。

答案 1 :(得分:1)

该网站正在使用CSS Pseudocodes。喜欢:之前和之后。它是一个CSS属性,专注于标记的开头和结尾。例如,在网站上。

#jp-relatedposts h3.jp-relatedposts-headline em:before{
    content: "";
    display: block;
    width: 100%;
    min-width: 30px;
    border-top: 1px solid #ddd;
    border-top: 1px solid rgba(0,0,0,.2);
    margin-bottom: 1em;
}

删除该行。只需删除Border top style或将其设为display none即可。希望我说的对你说的是正确的。

#jp-relatedposts h3.jp-relatedposts-headline em:before{
    content: "";
    display: none;
    width: 100%;
    min-width: 30px;
    margin-bottom: 1em;
}
相关问题