博客园自定义页面

本页面的CSS代码

博客园自定义页面
/**
    author:laplus
*/
body {
    /* background-image: url('https://www.icode9.com/i/l/?n=20&i=blog/1325604/202004/1325604-20200406140512818-267585123.jpg'); */
    background-image: url('https://www.icode9.com/i/l/?n=20&i=blog/1325604/202004/1325604-20200406174236307-397892921.jpg');
    display: flex;
    flex-direction: row;
    /* background-position: right; */
    /* background-size: cover; */
    background-size: cover;
    /* background-repeat: repeat-x; */
    background-attachment: fixed;
    /* flex-wrap: wrap; */
}

a {
    color:black;
    text-decoration: none;
}

a:hover {
    color: red;
}

#header {
    display: none;
}

#header * {
    display: none;
}

#main {
    margin-left: 20%;
    margin-right: 20%;
    /* flex-basis: 55%; */
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background-color: rgba(255, 255, 255,0.5);
}

#main .date {
    display: none;
}

.post {
    border-top-width: 0.01em;
    border-bottom-width: 0.01em;
    border-top-style: solid;
    border-bottom-style: solid;
    border-left: none;
    border-right: none;
    border-color: rgba(80, 77, 76, 0.411);
}

.post h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.date~.post h2 {
    text-align: start;
}

#cb_post_title_url {
    text-decoration: none;
    font-family: sans-serif;
    color: black;
}

#cb_post_title_url:hover {
    color: red;
}

.cnblogs_code {
    /* background-color: rgba(172, 199, 193,0.5); */
    background-color: rgba(220, 231, 229, 0.1);
    background-image: none !important;

}

.cnblogs_code_collapse {
    background-color: rgba(172, 199, 193,0.0);
    background-image: none !important;
}

.cnblogs_code_hide, .cnblogs_code_hide * {
    background-color: rgba(172, 199, 193,0.0) !important;
    background-image: none !important;
    /* background-color: rgba(255, 255, 255,0.5) !important; */
}

.comment_textarea {
    width: 100%;
}

.cnblogs_code_toolbar, cnblogs_code_toolbar * {
    display: none;
}

#rightmenu {
    background-color: rgba(80, 77, 76, 0.411);
    padding-left: 0.1rem;
    display: none;
}

/* .gif-container img{
    height: 100px;
    width: 100px;
    position: fixed;
    top: 80%;
    left: 70px;
} */

.gif-container img {
    height: 100px;
    width: 100px;
    position: fixed;
    top: 5%;
    right: 70px;
}

#ad_t2,
#cnblogs_c1,
#under_post_kb,
#cnblogs_c2,
#sidebar_categories,
#sidebar_shortcut,
#sidebar_search,
#sidebar_categories,
#sidebar_topviewedposts {
    display: none;
}
View Code

JS代码

博客园自定义页面
<script>
    // $('<div class="gif-container"><img src="https://www.icode9.com/i/l/?n=20&i=blog/1325604/202004/1325604-20200406181603687-2137375478.gif"></div>').prependTo("body");
    $("#main").after('<div class="gif-container"><img src="https://www.icode9.com/i/l/?n=20&i=blog/1325604/202004/1325604-20200406181603687-2137375478.gif"></div>');
</script>
View Code

 

上一篇:3D旋转


下一篇:图片隐写术了解下