蝉知文章详情页面样式控制

原创
2017-01-15 10:39:06
薛才杰
2068

这里简单地列了一些文章详情页面的样式控制,对于没有代码基础的童鞋可能会有帮助,大家可以作为参考。


/*文章标题样式*/
.article>header h1{
    text-align:center; /* 标题居中*/
    color:red; /*标题的颜色*/
}
/*文章内容样式*/
.article-content{
    font-size:16px !important; /*内容字体大小*/
    background-color:#ccc; /*内容背景色*/
}
/*浏览量显隐控制*/
.article>header span.label-warning{
    display:none;
}
/*原创显隐控制*/
.article>header span.label-success{
    display:none;
}
/*摘要显隐控制*/
.article>header section.abstract{
    display:none;
}
/*文章头部背景色*/
.article>header{
    padding-bottom:0px;
    background-color:#ccf;
}
发表评论
评论通过审核后显示。