博客园自定义样式

1、博客皮肤先换成darkgreentrip

2、页面定制CSS代码

#home {
    margin: 0 auto;
    width: 80%;/*原始65*/
    min-width: 980px;/*页面顶部的宽度*/
    background-color: rgba(245, 245, 245, 0.7);
    padding: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
    box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
}
body {
    background: rgba(255, 255, 255, 0.9) url('https://images.cnblogs.com/cnblogs_com/shoose/1770127/o_200521054150zm.jpg') fixed no-repeat;   //修改背景图片
    background-position: 50% 5%; 
    background-size: cover;
    opacity:0.65;
    cursor: url(https://files.cnblogs.com/files/wkfvawl/cursor.ico),auto;
}
#blogTitle {
    height: 100px;  /*高度*/
    clear: both;
    background-color: rgba(0,118,202));   //博客标题的背景
}
#blogTitle h1 {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.8em;/*原始 1.6em*/
    margin-top: 10px;/*原始 15px */
    color: #6ac1ff;
}
#blogTitle h2 {
    font-weight: normal;
    font-size: 17px;/*原始 16px ;font-size: 1.0rem;*/      
    line-height: 1.8;
    color: #6ac1ff;
    font-weight: bold;
    text-align: right;
    float: right; 
}
#navigator{
    background-color:rgba(0,118,202);           //标题栏下的颜色
}
#navList a:link, #navList a:visited, #navList a:active{
    color: #FFFFFF;
    font-size: 18px;
    font-weight: bold;
}
.blogStats{
    color: #eee;
}
.postTitle {
    border-left: 8px solid rgba(132,112,255, 0);
    margin-left: 10px;
    margin-bottom: 10px;
    font-size: 20px;
    float: right;
    width: 100%;
    clear: both;
}
.postTitle a:link, .postTitle a:visited, .postTitle a:active {
    color:    #6ac1ff;;
    transition: all 0.4s linear 0s;
}
.postTitle a:hover {
    margin-left: 30px;
    color: #6ac1ff;
    text-decoration: none;
}
.postCon {
    float: right;
    line-height: 1.5em;
    width: 100%;
    clear: both;
    padding: 10px 0;
}

.day .postTitle a {
    padding-left: 10px;
}
.day {
    background: rgba(255, 255, 255, 0.9);
}
/*文章附加信息*/
.postDesc {   
    background: url(images/posted_time.png) no-repeat 0 1px;
    color: #6ac1ff;
    float: left;
    width: 100%;
    clear: both;
    text-align: left;     
    font-family: "微软雅黑" , "宋体" , "黑体" ,Arial;
    font-size: 13px;
    padding-right: 20px;/*5px  padding-left: 90px;posted 发表时间左边距离*/
    margin-top: 20px;
    line-height: 1.8;
    padding-bottom: 35px;
}

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

.CalTitle{
    background: rgba(255, 255, 255, 0.9);
}
.catListTitle{
    background-color: rgba(106,193,255);   //栏目的条纹颜色
}

#topics{
    background: rgba(255, 255, 255, 0.9);
}

.c_ad_block{
    display: none;
}

#tbCommentBody{
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.9);
}

#q{background: rgba(255, 255, 255, 0.9);}

.CalNextPrev{background: rgba(255, 255, 255, 0.9);}

.cnblogs_code{
    background: rgba(255, 255, 255, 0.9);    
}

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

.cnblogs_code_toolbar{
    background: rgba(255, 255, 255, 0.9);  
}
#main{min-width: 640px;}
.entrylist{
    background: rgba(255, 255, 255, 0.9);  
}

/*侧边栏公告*/
#blog-news > img {
    /*头像*/
    display: block;
    margin: auto;
    border-radius: 50%;
}

#profile_block {
    font-size: 15px;
    padding: 20px;
    line-height: 1.8;
}

#profile_block > a:link {
    color: #F60;
}

/*公告结束*/

3、博客侧边栏公告(支持HTML代码) (支持 JS 代码)

<img src="https://images.cnblogs.com/cnblogs_com/shoose/1770127/o_200521072821%E8%8A%B1%E5%9F%8E.jpg" height="100" width="100">

4、页脚HTML代码

<script src="https://cdn.jsdelivr.net/npm/live2d-widget@3.0.4/lib/L2Dwidget.min.js"></script>
<script type="text/javascript">
L2Dwidget.init();
</script>

<script src="https://files.cnblogs.com/files/wkfvawl/mouse-click.js"></script>
<canvas width="1777" height="841" style="position: fixed; left: 0px; top: 0px; z-index: 2147483647; pointer-events: none;"></canvas>
原文地址:https://www.cnblogs.com/shoose/p/12931370.html