博客园(cnblogs)简单修改博客背景和透明度设置

发布时间 2023-07-08 00:12:30作者: Badnuker

扒着这位神犇的博客源码研究了半天,终于把改透明度的css代码挑了出来,先给大家看下效果:

爱门

怎么做到呢?首先,打开博客设置点进来的都是有博客的吧),下划,找到页面定制CSS代码

img

输入以下代码( ... 处填你的背景图片链接 )

body {

    background-image: url(...);

    background-width: 100%;

    background-height: 100%;

    background-size: cover;

    background-attachment: fixed;

    background-position: center 0;
}

.postTitle {

    font-size: x-large !important;

}


#home, pre {

    background-color: #fffc !important;

    border-radius: 10px;

}


code {

    background-color: transparent !important;

}


#sideBar div {

    background-color: transparent !important;

}


.table-wrapper {

    background-color: #fff9;

}

.table-wrapper th {

    background-color: #fff9 !important;

}


blockquote, details {

    background: none !important;

    background-color: #eee8 !important;

    border-radius: 10px;

}

summary {

    border-radius: 10px;

    background-color: #eee9;

    font-size: large;

    font-weight: bold;

}

搞定