首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >定制wp_list_comments设计

定制wp_list_comments设计
EN

Stack Overflow用户
提问于 2011-06-27 09:53:26
回答 1查看 1.7K关注 0票数 0

我使用wp_list_comments函数在主题中列出comment.php中的注释。请看我下面的设计。这对我来说有点复杂。我正在使用CSS风格的外观。

在评论列表中,"THISIS2NDREPLY"注释是"SUBJECT"注释的回复。如何添加如设计中所示的将THISIS2NDREPLY"SUBJECT"注释连接起来的线条?

我的CSS

/* CSS文档*/

代码语言:javascript
复制
#comments {
    clear: both;
}
#comments .navigation {
    padding: 0 0 18px 0;
}
h3#comments-title,
h3#reply-title {
    color: #000;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0;
}
h3#comments-title {
    padding: 24px 0;
}
.commentlist {
    list-style: none;
    margin: 0;
}
.commentlist li.comment {
    /*border-bottom: 1px solid #e7e7e7;*/
    line-height: 24px;
    margin: 0 0 24px 0;
    /*padding: 0 0 0 56px;*/padding: 0 0 0 0px;
    position: relative;
}
.commentlist li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
#comments .comment-body ul,
#comments .comment-body ol {
    margin-bottom: 18px;
}
#comments .comment-body p:last-child {
    margin-bottom: 6px;
}
#comments .comment-body blockquote p:last-child {
    margin-bottom: 24px;
}
.commentlist ol {
    list-style: decimal;
}


.commentlist .avatar {
    position: absolute;
    top: 4px;
    left: 0; 
}
.comment-author {
}
.comment-author cite {
    color: #4F57FF;
    font-style: normal; font-size:16px;
    font-weight: bold;
}
.comment-author cite a{ color: #4F57FF; text-decoration:none;}
.comment-author .says {
    font-style: italic;
}
.comment-meta {
    font-size: 12px;
    margin: 0 0 18px 0; margin: 0 0 5px 0; 
}
.comment-meta a:link,
.comment-meta a:visited {
    color: #545354;
    text-decoration: none; font-weight:bold;
}
.comment-meta a:active,
.comment-meta a:hover {
    color: #ff4b33;
}
.commentlist .even {
}
.commentlist .bypostauthor {
}
.reply {
    font-size: 12px;
    padding: 0 0 0px 0; clear:both;
}
.reply a,
a.comment-edit-link {
    color: #888;
}
.reply a:hover,
a.comment-edit-link:hover {
    color: #ff4b33;
}
.commentlist .children {
    list-style: none; 
    margin: 0;
}
.commentlist .children li {
    border: none;
    margin: 0;
}

.commentlist ul.children{
    background: #fff url('images/cmt-thrd-L.gif') no-repeat 0px 0px; 
}

.commentlist .depth-1 {
    background: #fff url('images/cmt-thrd-vline.gif') repeat-y -38px 0; float:left;
}
.commentlist li.depth-2, .commentlist li.depth-3, .commentlist li.depth-4, .commentlist li.depth-5 {
    background: #fff url('images/cmt-thrd-vline.gif') repeat-y -38px 0; 
}
.commentlist li.depth-1{
    border-left:0px solid #C1C5FE;}

我不知道如何将链接箭头应用于评论和回复。所以请推荐我。如何做到这一点。

谢谢

EN

回答 1

Stack Overflow用户

发布于 2011-06-27 10:43:26

您能不能不应用这样的css背景图像:

代码语言:javascript
复制
.commentlist li ul li{
     background: url('path to image') no-repeat left top;
     padding-left:60px;
}

顺便说一句,这是一个非常好的设计。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6491165

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档