博客园css定制

博客园css定制 选择模板SimplClear 代码如下: /* 广告屏蔽 */ #ad_t2 { display: none; } .c_ad_block { display: none; } /*背景颜色*/ body { background: rgba(12,100,12...

博客园css定制

选择模板SimplClear


代码如下:

/* 广告屏蔽 */
#ad_t2 {
    display: none;
}
.c_ad_block {
    display: none;
}

/*背景颜色*/
body {
    background: rgba(12,100,129,1) url('https://www.cnblogs.com/images/cnblogs_com/MouHaoHao/1443195/o_2.jpg') fixed no-repeat;
    background-position: 50% 5%;
    background-size: cover;
}

/*左页签*/
#main {
    margin: 0 auto;
    width: 50%;
        height: 515px;
    background-color: rgba(245,245,245,0.7);
    padding: 10px;
    padding-left: 1%;
    padding-right: 1%;
    margin-top: 50px;
    margin-bottom: 200px;
    margin-left: 9%;
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
    float: left;
    overflow-y: scroll ;
    border-radius: 4px 4px 4px 4px;
}

/*文章*/

.postTitle {
    border-left: 8px solid rgba(121,169,232,1);
    margin-left: 220px;
    margin-bottom: 10px;
    font-size: 20px;
    float: right;
    width: 100%;
    clear: both;
    border-bottom: 1px dashed rgba(197,197,197,1.00);
    border-top: 1px solid rgba(119,119,119,1.00);
}

.postTitle a:link, .postTitle a:visited, .postTitle a:active {
    color: rgba(94,142,234,1.00);
    transition: all 0.4s linear 0s;
}

.postTitle a:hover {
    margin-left: 30px;
    color: #0f3647;
    text-decoration: none;
}

.postCon {
    float: right;
    line-height: 1.5em;
    width: 100%;
    clear: both;
    padding: 10px 0;
}

.post {
    margin-top: 15px;
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

.c_b_p_desc {
    /*background: url(images/posted_time.png) no-repeat 0 1px;*/
    color: #757575;
    float: left;
    width: auto;
    clear: both;
    text-align: left;
    font-family: "微软雅黑","宋体","黑体",Arial;
    font-size: 13px;
    padding-right: 20px;
    margin-top: 20px;
    line-height: 1.8;
    padding-bottom: 35px;
}

.cnblogs_code {
    background: rgba(255,255,255,0)
}

.cnblogs_code div {
    background: rgba(255,255,255,0)
}

.cnblogs_code_toolbar {
    background: rgba(255,255,255,0)
}

/*右页签*/
#rightmenu {
    margin: 0 auto;
    width: 25%;
        height: 515px;
    background-color: rgba(245,245,245,0.7);
    padding: 10px;
    padding-left: 1%;
    padding-right: 1%;
    margin-top: 50px;
    margin-bottom: 50px;
    margin-right: 9%;
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
    float:right;
        overflow-y: scroll ;
        overflow-x: auto;
    border-radius: 4px 4px 4px 4px;
}

#rightmenu h3 {
    background-color: rgba(121,169,232,1);
    margin-bottom: 0px; 
    padding-left: 15px;
}

#footer {
    display: none;
}

/*博客名*/
#header {
    height: 100px;
    clear: both;
    color: rgba(245,245,245,0);
}

#header h1 {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.8em;
    margin-top: 10px;
    width: 150px;
    float: left;
}

#tagline {
    float: right;
    display: block;
}
/*隐藏反对*/
.buryit {
    display: none
}
.diggit {
    float: right
}

/*隐藏链接下划线*/
a:link {text-decoration:none;}
a:visited {text-decoration:none}
a:hover {text-decoration:none}
a:active {text-decoration:underline}

/*导航*/
#my_links {
    height: 120px;
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
    margin-bottom: 15px;
}

#my_links  h3 {
    float: left;
    height: 120px;
    width: 20px;
    text-align: center;
    word-break: break-all;
    margin-bottom: 0px;
    margin-top: 0px;
    padding-left: 0px
}

#my_links ul {
    padding-left: 0px;
    float: right;
    display: block;
    width: 150px;
    list-style-type: none;
    margin-bottom: 0px;
    margin-top: 0px;
}

#my_links a:link, #navList a:visited, #navList a:active{
    color: #000;
    font-size: 18px;
    font-weight: bold;
}



/*copytight*/
#my_footer {
    text-align: center;
    float: right;
    width: 20%;
    padding: 0px;
    margin: 40%;
    margin-top: 0px;
    margin-bottom: 0px;
}

/*右侧列表样式*/
#rightmenu ul li {
    margin-left: 15px;
}

/*日历*/
#blogCalendar {
    border:1px solid rgba(121,169,232,1);
    background-color: white;
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

/*公告*/
#blog-news {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}
#profile_block {
    padding-left: 40px;
}
/*统计*/
#blog_stats {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

/*搜索*/
#sidebar_search {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}
#q {
    background: rgba(255,255,255,0);
    margin-left: 40px;
    margin-bottom: 5px;
}

#widget_my_google {
    display: none
}

/*常用链接*/
#sidebar_shortcut {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

/*我的链接*/
#sidebar_toptags {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

/*随笔档案*/
#sidebar_categories {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

/*阅读档案*/
#sidebar_topviewedposts {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

/*?*/
.newsItem, .catListEssay, .catListLink, .catListNoteBook, .catListTag, .catListPostCategory, 
.catListPostArchive, .catListImageCategory, .catListArticleArchive, .catListView, 
.catListFeedback, .mySearch, .catListComment, .catListBlogRank, .catList, .catListArticleCategory ,#blog-calendar
{
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 35px;
    word-wrap: break-word;
}

自学第一周前端,可能有许多不到位之处。请各位大佬指正。。。

参考文献

  1. https://www.cnblogs.com/Penn000/p/6947472.html
  2. https://blog.csdn.net/siwuxie095/article/details/80151468
  • 发表于 2019-04-17 12:20
  • 阅读 ( 492 )
  • 分类:网络文章

条评论

请先 登录 后评论
不写代码的码农
小编

篇文章

作家榜 »

  1. 小编 文章
返回顶部
部分文章转自于网络,若有侵权请联系我们删除