博客园主题记录
第一次#
今天有人评论我才发现,之前的主题评论时不支持数学公式,一直嫌麻烦没有更换主题,现在铁了心要换了,在这里记录一下之前的主题!
页面定制CSS代码#
点击查看代码
/*返回顶部*/
#back-to-top {
background-color: #ffffff;
color:#000000;
bottom: 3px;
box-shadow: 0 0 6px ;
padding: 5px 5px;
position: fixed;
right: 0.4px;
border-radius: 4px;
font-weight: bold;
opacity: 0.85;
}
/*适应手机端*/
@media screen and (max-width: 768px){
#main, #mainContent{
width: 100%;
}
#sideBar, body > a, #navList, #navigator, .postDesc a, #homepage_top_pager{
display: none;
}
#blogTitle a{
font-size: 30px;
}
#blogTitle h2{
font-size: 16px;
}
#header{
height: 180px;
}
#home{
background-image: none;
}
.postTitle a{
font-size: 22px;
}
.postCon, .postCon a{
font-size: 16px;
}
.day{
margin: 0 2%;
}
.postCon a{
padding-left: 0;
}
.postDesc{
width: 100%;
font-size: 12px;
}
#home{
background-color: #68BCCA;
}
#mainContent .forFlow{
margin: 4px 0 0 0;
}
.postBody{
}
#blogTitle{
left: 0;
}
#mainContent .postBody{
width: 100%;
}
.post{
padding: 0 4%;
}
.topicListFooter{
width: 100%;
text-align: center;
padding: 0;
height: 40px;
}
.topicListFooter a:link{
font-size: 12px;
}
}
/*去广告*/
.c_ad_block {
display: none !important;
}
#commentform_title{
display: none !important;
}
#ad_t2{
display: none !important;
}
.itnews{
display: none !important;
}
.recomm-block{
display: none !important;
}
.under-post-card{
display: none !important;
}
@font-face {
font-family: 'FontAwesome';
font-style: normal;
font-weight: normal;
src: url("//blog.zhaishidan.cn/css/font/fontawesome-webfont.eot?#iefix") format('embedded-opentype'), url("//blog.zhaishidan.cn/css/font/fontawesome-webfont.woff") format('woff'), url("//blog.zhaishidan.cn/css/font/fontawesome-webfont.ttf") format('truetype'), url("//blog.zhaishidan.cn/css/font/fontawesome-webfont.svg#FontAwesomeRegular") format('svg');
}
* {
margin: 0;
padding: 0;
}
/*背景图片 */
body {
background: #eee;
background: url(https://source.unsplash.com/1600x900) fixed;
background-size: cover;
background-repeat: no-repeat;
font-weight: bold;
color: #330099;
font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif;
font-size: 14px;
text-shadow: 0 0 1px transparent;
color:#330000;
opacity:0.85
}
@media screen and (max-width: 1260px) {
body {
margin: 0px;
}
}
@media screen and (max-width: 600px) {
body {
font-size: 13px;
}
}
h1,h2,h3,h4,h5,h6 {font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif;}
h1 {font-size: 1.8em;}
h2 {font-size: 1.5em;}
h3 {font-size: 1.3em;}
a {text-decoration: none;color:#330099;}
a:hover {text-decoration: underline;}
#home{
margin: 0 auto;
width: 85%;
background-color: #fff;
padding: 30px;
margin-top: 50px;
margin-bottom: 50px;
box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
border-radius: 20px;
}
#tbCommentBody {width: 100%;}
#blogTitle {width:22%;margin-top: -10px;text-align: center;}
.alignright {float: right;}
#header, #main, #footer {width: 100%;margin: 0 auto;}
@media screen and (max-width: 1260px) {
#main {
width: 96%;
}
}
#mainContent {
width: 75%;
float: left;
margin-left: 10px;
}
@media screen and (max-width: 1260px) {
#main-col {
width: 100%;
margin-right: -300px;
}
}
@media screen and (max-width: 900px) {
#main-col {
margin-right: 0;
float: none;
}
}
@media screen and (max-width: 1260px) {
#wrapper {
margin-right: 300px;
}
}
@media screen and (max-width: 900px) {
#wrapper {
margin-right: 0;
}
}
#header {
text-shadow: 0 0 1px #fff;
margin: 10px auto 30px;
position: relative;
height: 60px;
color: #999;
}
#header a {
color: #000000;
}
#header a:hover {
color: #258fb8;
text-decoration: none;
}
#header h1 {
font-weight: normal;
font-size: 30px;
}
#header h2 {
font-weight: normal;
font-size: 0.9em;
margin-top: 10px;
margin-left: 30px;
}
#header #navigator {
font-family: "Lato", Helvetica Neue, Helvetica, Arial, sans-serif;
width: 100%;
font-size: 16px;
border-bottom: 1px solid #ededed;
border-top: 1px solid #ededed;
height: 50px;
line-height: 50px;
clear: both;
margin-top: 25px;
}
#header #navigator ul {
list-style: none;
}
#header #navigator ul li {
float: left;
width: 10%;
text-align: center;
margin-right: 15px;
}
#header .blogStats {
float: right;
font-size: 13px;
}
.topicListFooter {
margin-top:30px;
margin-bottom: 30px;
margin-right: 0 !important;
}
.topicListFooter a {
display: inline !important;
padding: 10px 20px;
background: #ddd;
color: #999;
font-family: "Lato", Helvetica Neue, Helvetica, Arial, sans-serif;
text-shadow: 0 0 1px #fff;
border-radius: 5px;
}
.topicListFooter a:hover {
background: #258fb8;
color: #fff;
text-decoration: none;
text-shadow: none;
}
.topicListFooter .prev:before {
content: '\f053';
padding-right: 10px;
font-family: FontAwesome;
}
.topicListFooter .next:after {
content: '\f054';
padding-left: 10px;
font-family: FontAwesome;
}
article {
-webkit-box-shadow: 1px 2px 3px #ddd;
box-shadow: 1px 2px 3px #ddd;
background: #fff;
}
article.page {
padding-left: 20px;
}
article.page .icon {
display: none;
}
.postIcon:before {
content: '\f016';
}
article.photo .icon:before {
content: '\f030';
}
article.link .icon:before {
content: '\f0c1';
}
article.link .title a:after {
content: '\f08e';
color: #999;
font: 12px FontAwesome;
padding-left: 10px;
vertical-align: super;
}
/******************************************以下自定义样式***********************************************/
#MySignature{
border-top: 2px solid #ccc;
padding-top: 20px;
}
.pager{
border-bottom: 1px dashed #ddd;
padding-bottom: 30px;
margin-bottom: -30px;
}
#blog-calendar{
width:0px;
height:0px;
display: none !important;
}
#TopViewPostsBlock ul li{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
display: inline-block;
height: 30px;
line-height: 30px;
}
/* .day .dayTitle{
display: none !important;
} */
//去掉广告
#ad_t2,#opt_under_post,#c_ad_block,#under_post_news,#under_post_kb,#cnblogs_c2,#HistoryToday,#sideBar,#under-post-card,#tnews,under-post-card,bannerbar,#bannerbar-mobile formobile,bannerbar-mobile formobile,#bannerbar,#bannerbar img{
display: none !important;
}
/******************************************以上自定义样式***********************************************/
.postTitle, .entrylistPosttitle {
font-family: "Lato", Helvetica Neue, Helvetica, Arial, sans-serif;
font-size: 1.8em;
padding: 20px 20px 15px 0px;
background: #fff;
border-radius: 10px 10px 0px 0px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.entrylistPostSummary, .postCon, .postBody {
padding: 0 20px 15px 0px;
-webkit-box-shadow: 1px 2px 3px #ddd;
box-shadow: 0 2px 0 #ddd;
background: #fff;
position: relative;
}
.postDesc, .entrylistItemPostDesc {
padding: 0px 20px 15px 0px;
color: #999;
font-size: 0.9em;
line-height: 16px;
position: relative;
min-height: 16px;
background: #fff;
border-bottom: 1px dashed #ccc;
}
#blog-calendar {
display: none;
}
@media screen and (max-width: 600px) {
.postCon {
padding-left: 0px;
}
}
.postIcon {
height: 0px;
margin-right: 25px;
position: relative;
top: 25px;
left: 25px;
color: #258fb8;
}
@media screen and (max-width: 600px) {
article header .icon {
display: none;
}
}
.postIcon:before {
position: absolute;
font: 32px FontAwesome;
top: 0;
left: 0;
width: 32px;
text-align: center;
}
article header time {
color: #999;
font: 0.9em "Lato", Helvetica Neue, Helvetica, Arial, sans-serif;
margin-bottom: 5px;
display: block;
line-height: 1;
}
article header .title {
font-weight: normal;
}
article header .title a {
color: #444;
}
article header .title a:hover {
color: #258fb8;
text-decoration: none;
}
#cnblogs_post_body {
text-align: justify;
line-height: 1.6;
}
#cnblogs_post_body p,
#cnblogs_post_body blockquote,
#cnblogs_post_body ul,
#cnblogs_post_body ol,
#cnblogs_post_body dl,
#cnblogs_post_body table,
#cnblogs_post_body iframe,
#cnblogs_post_body h3,
#cnblogs_post_body h4,
#cnblogs_post_body h5,
#cnblogs_post_body h6,
#cnblogs_post_body .video-container {
margin-top: 15px;
}
#cnblogs_post_body blockquote {
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
font-style: italic;
font-family: "Georgia", serif;
font-size: 1.2em;
padding: 0 30px 15px;
}
#cnblogs_post_body blockquote footer {
border-top: none;
font-size: 0.8em;
line-height: 1;
margin: 20px 0 0;
padding-top: 0;
}
#cnblogs_post_body blockquote footer cite:before {
content: '—';
color: #ccc;
padding: 0 0.5em;
}
#cnblogs_post_body code,
#cnblogs_post_body pre {
font-family: Monaco, Menlo, Consolas, Courier New, monospace;
}
#cnblogs_post_body code {
background: #eee;
color: #666;
padding: 0 5px;
margin: 0 2px;
font-size: 0.9em;
border: 1px solid #ddd;
-webkit-border-radius: 3px;
border-radius: 3px;
}
#cnblogs_post_body pre {
background: #eee;
overflow: auto;
padding: 7px 15px;
-webkit-border-radius: 2px;
border-radius: 2px;
}
#cnblogs_post_body pre code {
background: none;
padding: 0;
margin: 0;
border: none;
-webkit-border-radius: 0;
border-radius: 0;
}
#cnblogs_post_body ul ul,
#cnblogs_post_body ol ul,
#cnblogs_post_body dl ul,
#cnblogs_post_body ul ol,
#cnblogs_post_body ol ol,
#cnblogs_post_body dl ol,
#cnblogs_post_body ul dl,
#cnblogs_post_body ol dl,
#cnblogs_post_body dl dl {
margin-top: 0;
}
#cnblogs_post_body h1 {
font-weight: bold;
border-bottom: 1px solid #ddd;
padding-bottom: 10px;
margin-top: 20px;
}
#cnblogs_post_body h2,
#cnblogs_post_body h3,
#cnblogs_post_body h4,
#cnblogs_post_body h5,
#cnblogs_post_body h6 {
font-weight: normal;
background: #eee;
border-radius: 6px;
color: Red;
font-family: "微软雅黑" , "宋体" , "黑体" ,Arial;
min-height: 25px;
line-height: 25px;
margin: 18px 5px !important;
padding: 8px;
opacity: 0.8;
border: 1px dashed #aaa;
}
#cnblogs_post_body h4{padding-left:20px !important;color:Green !important;}
.postBody img,
.entrylistPostSummary img, .postCon img,
.postBody video {
max-width: 100%;
height: auto;
border: none;
}
#cnblogs_post_body iframe {
border: none;
}
#cnblogs_post_body .caption {
display: block;
margin-top: 5px;
color: #999;
position: relative;
font-size: 0.9em;
padding-left: 25px;
}
#cnblogs_post_body .caption:before {
content: '\f040';
position: absolute;
font: 1.3em FontAwesome;
position: absolute;
left: 0;
top: 3px;
}
#cnblogs_post_body .video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
#cnblogs_post_body .video-container iframe,
#cnblogs_post_body .video-container object,
#cnblogs_post_body .video-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
margin-top: 0;
}
#cnblogs_post_body .pullquote {
float: right;
border: none;
padding: 0;
margin: 1em 0 0.5em 1.5em;
text-align: left;
width: 45%;
font-size: 1.5em;
}
#blog-comments-placeholder, #comment_form {
padding: 20px;
background: #fff;
-webkit-box-shadow: 1px 10px 10px #ddd;
box-shadow: 10px 10px 10px #ddd;
margin-bottom: 50px;
border: 1px solid #ccc;
padding-top:0;
}
.feedback_area_title {
margin-bottom: 15px;
font-size: 1.8em;
}
.feedbackItem {
border-bottom: 1px dashed #CCC;
margin-bottom: 10px;
padding: 5px;
}
.color_shine {background: rgb(226, 242, 255);}
.feedbackItem:hover {-webkit-animation-name: color_shine;-webkit-animation-duration: 2s;-webkit-animation-iteration-count: infinite;}
#comment_form .title {
font-weight: normal;
margin-bottom: 15px;
}
#ad_under_post_holder {
display: none;
}
.entrylistTitle {
color: #999;
font-weight: normal;
margin-bottom: 30px;
text-shadow: 0 0 1px #fff;
}
.entrylistTitle:before {
font-family: FontAwesome;
content: '\f07b';
padding-right: 15px;
}
.archive {
-webkit-box-shadow: 1px 2px 3px #ddd;
box-shadow: 1px 2px 3px #ddd;
border-bottom: 1px solid #ddd;
margin-bottom: 50px;
}
.archive article {
-webkit-box-shadow: none;
box-shadow: none;
}
.archive article .post-content {
margin-bottom: 0;
}
#sideBar{
width: 22%;
line-height: 1.8em;
float: right;
}
@media screen and (max-width: 900px) {
#sideBar {
float: none;
width: 100%;
}
}
.catListLink, .catListMyTeams, .catListComment, .catListFeedback {
display: none;
}
.search, .newsItem, .catListPostCategory, .catListPostArchive, .catListTag, .catListView, .catListBlogRank {
background: #fff;
-webkit-box-shadow: 1px 2px 3px #ddd;
box-shadow: 10px 10px 10px #ddd;
margin-bottom: 30px;
word-wrap: break-word;
border-radius: 10px;
margin-top: 10px;
border: 1px solid #ddd;
}
#blog-sidecolumn h3, .newsItem h3 {
padding: 15px 20px;
font-size: 1em;
border-bottom: 1px solid #ddd;
font-weight: normal;
}
#blog-sidecolumn ul, .newsItem #blog-news {
font-size: 0.9em;
padding: 15px 20px;
}
#blog-sidecolumn ul,
#blog-sidecolumn ol,
#blog-sidecolumn dl {
list-style: none;
}
#blog-sidecolumn ul ul,
#blog-sidecolumn ol ul,
#blog-sidecolumn dl ul,
#blog-sidecolumn ul ol,
#blog-sidecolumn ol ol,
#blog-sidecolumn dl ol,
#blog-sidecolumn ul dl,
#blog-sidecolumn ol dl,
#blog-sidecolumn dl dl {
list-style: disc;
margin-left: 20px;
}
#q {
background: #fff;
font-family: "Lato", Helvetica Neue, Helvetica, Arial, sans-serif;
font-style: oblique;
font-size: 1em;
padding: 10px 15px;
border: 1px solid #ddd;
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
color: #999;
height: 100%;
}
#q:focus {
color: #444;
}
#sideBar .tag small {
margin-left: 15px;
color: #999;
}
#sideBar .tag small:before {
content: '(';
}
#sideBar .tag small:after {
content: ')';
}
#sideBar .twitter li {
border-bottom: 1px solid #ddd;
padding: 15px 20px;
font-size: 0.9em;
}
#sideBar .twitter li:last-of-type {
border-bottom: none;
}
#sideBar .twitter small {
display: block;
margin-top: 10px;
color: #999;
line-height: 1;
}
#sideBar .tagcloud .entry {
padding-right: 5px;
}
#sideBar .tagcloud a {
margin-right: 10px;
display: inline-block;
}
#footer {
color: #999;
margin-bottom: 50px;
font: 0.9em/1.6 "Lato", Helvetica Neue, Helvetica, Arial, sans-serif;
text-shadow: 0 0 1px #fff;
text-align:center;
margin: 30px 0px 50px;
}
background: #eee;
border: 1px solid #ddd;
.entry .gist {
margin-top: 15px;
padding: 7px 15px;
-webkit-border-radius: 2px;
border-radius: 2px;
text-shadow: 0 0 1px #fff;
line-height: 1.6;
overflow: auto;
color: #666;
}
.entry .gist .gist-file {
border: none;
font-family: inherit;
margin: 0;
font-size: 0.9em;
}
.entry .gist .gist-file .gist-data {
background: none;
border-bottom: none;
}
.entry .gist .gist-file .gist-data pre {
padding: 0 !important;
font-family: Monaco, Menlo, Consolas, Courier New, monospace;
}
.entry .gist .gist-file .gist-meta {
background: none;
color: #999;
margin-top: 5px;
padding: 0;
text-shadow: 0 0 1px #fff;
font-size: 100%;
}
.entry .gist .gist-file .gist-meta a {
color: #258fb8;
}
.entry .gist .gist-file .gist-meta a:visited {
color: #258fb8;
}
figure.highlight {
background: #eee;
border: 1px solid #ddd;
margin-top: 15px;
padding: 7px 15px;
-webkit-border-radius: 2px;
border-radius: 2px;
text-shadow: 0 0 1px #fff;
line-height: 1.6;
overflow: auto;
position: relative;
font-size: 0.9em;
}
figure.highlight figcaption {
color: #999;
margin-bottom: 5px;
text-shadow: 0 0 1px #fff;
}
figure.highlight figcaption a {
position: absolute;
right: 15px;
}
figure.highlight pre {
border: none;
padding: 0;
margin: 0;
}
figure.highlight table {
margin-top: 0;
border-spacing: 0;
}
figure.highlight .gutter {
color: #999;
padding: 7px 10px 7px 5px !important;
border-right: 1px solid #ddd;
text-align: right;
}
figure.highlight .code {
padding: 7px 7px 7px 10px !important;
border-left: 1px solid #fff;
color: #666;
}
pre .comment,
pre .template_comment,
pre .diff .header,
pre .doctype,
pre .pi,
pre .lisp .string,
pre .javadoc {
color: #93a1a1;
font-style: italic;
}
pre .keyword,
pre .winutils,
pre .method,
pre .addition,
pre .css .tag,
pre .request,
pre .status,
pre .nginx .title {
color: #859900;
}
pre .number,
pre .command,
pre .string,
pre .tag .value,
pre .phpdoc,
pre .tex .formula,
pre .regexp,
pre .hexcolor {
color: #2aa198;
}
pre .title,
pre .localvars,
pre .chunk,
pre .decorator,
pre .built_in,
pre .identifier,
pre .vhdl,
pre .literal,
pre .id {
color: #268bd2;
}
pre .attribute,
pre .variable,
pre .lisp .body,
pre .smalltalk .number,
pre .constant,
pre .class .title,
pre .parent,
pre .haskell .type {
color: #b58900;
}
pre .preprocessor,
pre .preprocessor .keyword,
pre .shebang,
pre .symbol,
pre .symbol .string,
pre .diff .change,
pre .special,
pre .attr_selector,
pre .important,
pre .subst,
pre .cdata,
pre .clojure .title {
color: #cb4b16;
}
pre .deletion {
color: #dc322f;
}
.feedbackManage {width: 160px;position: absolute;right: 0;text-align: right;}
.cnblogs_code_toolbar {display: none;}
#cnblogs_post_body {overflow: hidden;}
#cnblogs_post_body ol { padding-left: 40px;}
#cnblogs_post_body ul { margin-left: 35px;}
.fixedReadRank { position: fixed; top: 20px; width: 270px; }
.fixedRecRank { position: fixed; top: 360px; width: 270px; }
figure.highlight { margin-top: 0; padding: 0;}
figure table {width: 100%; margin: 0 !important;}
#cnblogs_post_body pre { padding: 0; }
#cnblogs_post_body th, #cnblogs_post_body td { padding: 0; }
.cnblogs_code pre { padding: 7px 15px !important; background: #f5f5f5;border: 0;margin-top: 0;}
.cnblogs_code th {border: 1px solid silver; padding: 3px;}
.cnblogs_code { padding: 0;}
/*评论标题*/
.feedback_area_title {
padding:10px;
font-size:24px;
font-weight:bold;
color:#aaa;
border-bottom:1px dashed #ccc;
}
.feedbackListSubtitle {
font-size:12px;
color:#888;
}
.feedbackListSubtitle a {
color:#888;
}
.comment_quote {
background: #eee;
padding: 15px;
border: 1px dashed #aaa;
border-radius: 5px;
}
#commentform_title {
color:#aaa;
background-image:none;
background-repeat:no-repeat;
margin-bottom:10px;
padding:10px 20px 10px 10px;
font-size:24px;
font-weight:bold;
border-bottom:1px dashed #ccc;
}
/*评论框*/
#comment_form {
margin:10px 0;
padding:25px;
border-radius: 10px;
}
.commentform {
margin:10px 0;
padding:10px 20px;
background:#fff;
}
/*评论输入域*/
#tbCommentBody {
font-family:'MIcrosoft Yahei';
margin-top:10px;
background:white;
color:#333;
border:2px solid #fff;
box-shadow:inset 0 0 8px #aaa;
height:120px;
font-size:14px;
min-height:120px;
border-radius: 10px;
}
/*评论条目*/
.feedbackItem {
font-size:14px;
line-height:24px;
margin:10px 0;
padding:20px;
padding-top:5px;
}
.feedbackListSubtitle {
font-weight:normal;
}
/*green_channel*/
#green_channel {
text:align:right;
padding-left:0px;
font-weight:normal;
font-size:13px;
width:100%;
border:1px dashed #ccc;
color:#fff;
border-radius:4px;
margin:5px auto;
}
@media screen and (max-width: 768px) {
body {
font-size: 13px;
}
#main{padding:0px !important;}
#mainContent{width: 96%;float: left;margin: 0px 2%;}
#sideBar {display: none;}
#blogTitle {width: 100%;float:none;margin: 20px auto 0 !important;}
#header{height:auto !important;margin: 20px auto 5px;}
#header #navigator{width: 100%;text-align: center;float:none;}
#header #navigator ul{width: 100%;margin-left: 6%;}
#header #navigator ul li {float: left;width: 25%;text-align: center;margin-right:0px;}
.postTitle, .entrylistPosttitle{font-size:14px;padding: 20px 20px 15px 0px;}
.postDesc, .entrylistItemPostDesc{padding: 0px 20px 15px 0px;}
#green_channel{padding:0px !important;}
#blog_stats{display: none;}
}
#blog-news label{box-shadow:5px 5px 5px #cccccc;text-shadow:5px 5px 5px #cccccc;border-radius:5px;}
#div_digg{
padding: 5px;
border-radius: 5px;
position: fixed;
left: 0;
bottom: 80px;
width:80px;
z-index:100;
}
.diggit{
background: url(//images2017.cnblogs.com/blog/894443/201709/894443-20170920105433618-867225449.png) no-repeat;
width: 60px;
height: 60px;
}
#div_digg .diggnum{
position: absolute;
bottom: -20px;
left: 6px;
background: #D0D0D0;
padding: 2px 0;
display: block;
color: #555;
font-size: 12px;
text-align: center;
width: 60px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
font-weight: bold;
}
.buryit{
display: none;
}
div.commentform textarea.comment_textarea {
padding: 10px;
}
#tbCommentBody{
width:98%;
}
#cnblogs_post_body h3:hover {
color: green;
font-size: large;
font-weight: bold;
}
/*scroll to top*/
#scrollTop div{
left:0;
overflow:hidden;
position:absolute;
top:0;
width:149px;
margin:0;
padding:0
}
#scrollTop .level-2{
background:url(//images2015.cnblogs.com/blog/894443/201707/894443-20170716165243785-2122236756.png) no-repeat scroll -149px 0 transparent;
display:none;
height:250px;
opacity:0;
z-index:1
}
#scrollTop .level-3{
background:none repeat scroll 0 0 transparent;
cursor:pointer;
display:block;
height:150px;
z-index:2
}
#scrollTop{
background:url(//images2015.cnblogs.com/blog/894443/201707/894443-20170716165243785-2122236756.png) no-repeat scroll 0 0 transparent;
cursor:default;
display:block;
height:180px;
overflow:hidden;
position:fixed;
right:0;
bottom:0;
width:149px;
z-index:11;
margin:-125px 0 0;
padding:0
}
/*评论带头像,且支持旋转*/
.feedbackCon img:hover {
-webkit-transform: rotateZ(360deg);
-moz-transform: rotateZ(360deg);
-ms-transform: rotateZ(360deg);
-o-transform: rotateZ(360deg);
transform: rotateZ(360deg);
}
.feedbackCon img {
border-radius: 40px;
-webkit-transition: all 0.6s ease-out;
-moz-transition: all 0.5s ease-out;
-ms-transition: all 0.5s ease-out;
-o-transition: all 0.5s ease-out;
transition: all 0.5s ease-out;
}
/*CNZZ样式*/
#cnzz_stat_icon_1264405927{
display: block;
margin: 10px auto;
width: 200px;
text-align: center;
}
/*打赏插件*/
/**
* update 20150907
* **/
.myRewards {position:fixed; _position:absolute; right:0; top:10%; z-index:10000; padding-left:34px; width:0px; overflow:hidden; box-sizing: content-box;}
.myRewards ul,.myRewards li{margin:0;padding:0;}
.myRewards img{ border:0; display:block;}
.myRewards a{ color:#000; text-decoration:none; outline:0 none;}
.myRewards-main{ width:240px; height:332px; font:12px/1.5 "microsoft yahei",tahoma,arial,sans-serif;; color:#000; background-color:#fff; border:1px solid #dbdbdb; border-right:none;}
.btn-myRewards{ position:absolute; left:0; top:50%; margin-top:-46px; width:34px; height:93px;}
.myR-h,.myR-bot{ margin:0; height:26px; line-height:26px; background-color:#e7e7e7;}
.myRewards-main .myR-h{ padding:0 0 0 6px; font-size:14px; font-weight:normal; background-image:none;}
.myRewards-main .myR-bot{ padding-right:6px; font-size:12px; text-align:right;}
.myR-bot a:hover{ text-decoration:underline;}
.myRewardsbox{ font-size:0; background-color:#eeeeee; width:240px;}
.myRewards-list{ display:inline-block; *display:inline; *zoom:1; vertical-align:middle; width:90px; font-size:12px;}
.myRewards-list ul{ list-style:none;}
.myRewards-list ul.not-full{border-top:1px solid #dfdfdf;}
.myRewards-list li{ display:block; height:56px; -webkit-transition:background-color .2s linear; transition:background-color .2s linear;}
.myRewards-list a{ position:relative; display:block; padding-left:40px; height:55px; line-height:55px; font-size:12px; border-bottom:1px solid #cccccc;}
.myRewards-list a.fifth{border-bottom: none;}
.myRewards-list a img{ position:absolute; left:6px; top:13px; width:30px; height:30px;}
.myRewards-list .myR-on{ border-right:none;}
.myRewards-list .myR-on a,
.myRewards-list .myR-on a:hover{ background-color:#fff;}
.myRewards-detail{ display:inline-block; *display:inline; *zoom:1; vertical-align:middle; width:150px; height:280px; font-size:12px; background-color:#fff;}
.myRewards-ubox{ padding:14px 0 0 10px;}
.myRewards-code-tit{ margin:0 0 20px; width:132px; height:30px; line-height:30px; font-size:12px; text-align:center; background:url(../img/tab_pay.jpg) no-repeat;}
.myRewards-code{ margin:0 0 20px; padding:12px; width:106px; height:106px; background:url(../img/border.jpg) no-repeat; box-sizing: content-box;}
.myRewards-code img{ width:106px; height:106px;}
.i-myRewards{ position:absolute; right:6px; top:16px; width:23px; height:23px; line-height:23px; font-size:14px; color:#44b973; text-align:center; background:url(../img/tab_shang.png) no-repeat;}
.myRewards-account{ font-size:12px; word-break:break-all; text-align:center;}
/* 评论开始 */
/* 用户头像 */
.blog_comment_body > img.user-avatar {
position: absolute;
left: -72px;
top: 0px;
width: 48px;
height: 48px;
}
.myself .blog_comment_body > img.user-avatar {
left: initial;
right: -72px;
}
#blog-comments-placeholder {
border: solid 1px #CCC;
border-radius: 5px;
}
div#comments_pager_top {
display: none;
}
#blog-comments-placeholder > br {
display: none;
}
/* 评论列表 */
.feedbackManage {
width: 130px;
display: none;
position: absolute;
right: 150px;
top: 6px;
}
.feedbackItem:hover .feedbackManage {
display: block;
}
/* 所有评论里面的A标签 */
.feedbackItem a {
color: #989898 !important;
transition: all .2s;
}
.feedbackItem a:hover {
color: #FF661C !important;
text-decoration: underline;
}
/* 评论分割线 */
.feedbackCon {
background: none;
clear: both;
margin: 10px 0 0 30px;
}
/* 楼层 */
.feedbackListSubtitle a.layer {
background: #B2E866;
color: #414141 !important;
padding: 2px 4px;
border-radius: 2px;
margin-right: 4px;
/*display: none;*/
}
/* 评论人 */
.feedbackListSubtitle a[target="_blank"] {
color: #FF6969 !important;
}
/* 评论时间 */
.feedbackItem .comment_date {
color: #BCBCBC;
margin-right: 4px;
}
/* 楼主颜色 */
.feedbackListSubtitle {
color: #0AB300;
}
/* 支持与反对 */
.comment_vote {
float: right;
margin-top: -34px;
display: none;
}
/* 鼠标经过时显示支持与反对 */
.feedbackItem:hover .comment_vote {
display: block;
}
/* 评论内容颜色 */
.feedbackItem {
color: #464646;
position: relative;
}
/* 评论背景色 */
.blog_comment_body {
background: #c9e4cb;
float: left;
padding: 14px 10px;
border-radius: 5px;
position: relative;
overflow: visible;
margin-left: 33px;
max-width: 550px;
}
/* 评论三角形 */
.blog_comment_body:before {
content: '';
display: block;
position: absolute;
left: -17px;
top: 9px;
width: 0;
height: 0;
border-right: solid 18px #B2E866;
border-top: solid 6px rgba(0, 0, 0, 0);
border-bottom: solid 10px rgba(0, 0, 0, 0);
}
/* 评论头像 */
.blog_comment_body:after {
content: attr(data-louceng);
display: none;
width: 48px;
height: 48px;
position: absolute;
left: -72px;
top: 0px;
text-align: center;
line-height: 48px;
font-size: 18px;
color: #FFF;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.42);
font-family: 'Microsoft Yahei';
background: linear-gradient(top , rgb(116, 218, 45) 12% , rgb(135, 255, 75) 35% , rgb(71, 179, 28) 86%);
background: -o-linear-gradient(top , rgb(116, 218, 45) 12% , rgb(135, 255, 75) 35% , rgb(71, 179, 28) 86%);
background: -ms-linear-gradient(top , rgb(116, 218, 45) 12% , rgb(135, 255, 75) 35% , rgb(71, 179, 28) 86%);
background: -moz-linear-gradient(top , rgb(116, 218, 45) 12% , rgb(135, 255, 75) 35% , rgb(71, 179, 28) 86%);
background: -webkit-linear-gradient(top , #74DA2D 12% , #87FF4B 35% , #47B31C 86%);
background-size: contain;
}
/* 清除浮动 */
.feedbackCon:after {
content: '';
display: block;
clear: both;
}
/* 引用边框 */
.comment_quote {
border: 1px solid #63921F;
border-radius: 3px;
}
/* 隐藏小图标 */
.feedbackItem .sendMsg2This {
display: none;
}
/* 楼主自己的样式 */
.myself .blog_comment_body {
float: right;
margin-right: 72px;
background: #98DDFF;
}
.myself .blog_comment_body:before {
right: -17px;
left: initial;
border-left: solid 18px #98DDFF;
border-right: none;
}
.myself .blog_comment_body:after {
content: '';
display: none;
width: 48px;
height: 48px;
background-image: url(//pic.cnblogs.com/avatar/352797/20160108090502.png) !important;
background-size: contain;
position: absolute;
right: -72px;
top: 0px;
left: initial;
}
.myself .feedbackCon{
margin: 10px 0 0 0px;
}
.myself .comment_vote {
float: left;
margin-left: -40px;
}
.myself .comment_quote {
border: 1px solid #4491B7;
}
.myself .feedbackListSubtitle {
float: right;
margin-right: 10px;
margin-bottom: 10px;
}
.myself .feedbackListSubtitle a.layer {
display: inline-block;
}
.myself .feedbackManage {
left: 66px;
right: initial;
top: 8px;
}
/* 评论结束 */
.clearfix {zoom: 1;}
.clearfix:before,.clearfix:after {content: "";display: table;}
.clearfix:after {clear: both;}
/*好看的滚动条*/
::-webkit-scrollbar{
width:10px!important;
height:10px!important;
-webkit-appearance:none;
}
::-webkit-scrollbar-thumb{
height:5px;border:1px solid transparent;
border-top:none;border-bottom:none;
-webkit-border-radius:6px;
background-color:rgba(0,0,0,.3);
background-clip:padding-box;
}
/* 定制公告栏时钟位置 */
#clockdiv {
/* left, center, right */
text-align: center;
}
/*生成博客目录的CSS*/
#uprightsideBar{
font-size:12px;
font-family:Arial, Helvetica, sans-serif;
text-align:left;
position:fixed;/*将div的位置固定到距离top:100px,right:0px的位置,这样div就会处在最右边的位置,距离顶部100px*/
top:50px;
right:0px;
width: auto;
height: auto;
}
#sideBarTab{
float:left;
width:30px;
border:1px solid #e5e5e5;
border-right:none;
text-align:center;
background:#ffffff;
}
#sideBarContents{
float:left;
overflow:auto;
overflow-x:hidden;!important;
width:210px;
min-height:108px;
max-height:500px;
border:1px solid #e5e5e5;
border-right:none;
background-color: #330000;
color:#FFFFFF;
}
#sideBarContents dl{
margin:0;
padding:0;
}
#sideBarContents dt{
margin-top:5px;
margin-left:5px;
}
#sideBarContents dd, dt {
cursor: pointer;
}
#sideBarContents dd:hover, dt:hover {
color:#006699;
}
#sideBarContents dd{
margin-left:20px;
}
博客侧边公告#
点击查看代码
<div id="clockdiv">
<a href="https://www.cnblogs.com/pam-sh/">
<img id="preview_large" alt="" src="https://images.cnblogs.com/cnblogs_com/pam-sh/1845945/o_200911170904mmexport1516036776089.gif" class="preview-image" style="" width="120" height="100"/>
</a><br>
<a href="https://hang-shao.github.io/ReadMe//" target="_blank">Pam</a><br>
</div>
页首HTML#
点击查看代码
<a href="https://github.com/Hang-shao" class="github-corner" aria-label="View source on GitHub">
<svg width="50" height="50" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: fixed; top: 0; border: 0; right: 0;" aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
</svg></a>
<style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}} </style>
<script>
var content = 'width=device-width, initial-scale=1 user-scalable=no';
var viewport = document.createElement('meta');
viewport.setAttribute('name', 'viewport');
viewport.setAttribute('content', content);
document.head.appendChild( viewport );
</script>
<script src="http://latex.codecogs.com/latex.js" type="text/javascript"></script>
<span id="back-to-top"><a href="#top">返回顶部</a></span>
<span id="top"></span>
<link type="text/css" rel="stylesheet" href="https://files.cnblogs.com/files/bopo/maodian.css">
<script type="text/javascript">
/*
功能:生成博客目录的JS工具
测试:IE8,火狐,google测试通过
*/
var BlogDirectory = {
/*
获取元素位置,距浏览器左边界的距离(left)和距浏览器上边界的距离(top)
*/
getElementPosition:function (ele) {
var topPosition = 0;
var leftPosition = 0;
while (ele){
topPosition += ele.offsetTop;
leftPosition += ele.offsetLeft;
ele = ele.offsetParent;
}
return {top:topPosition, left:leftPosition};
},
/*
获取滚动条当前位置
*/
getScrollBarPosition:function () {
var scrollBarPosition = document.body.scrollTop || document.documentElement.scrollTop;
return scrollBarPosition;
},
/*
移动滚动条,finalPos 为目的位置,internal 为移动速度
*/
moveScrollBar:function(finalpos, interval) {
//若不支持此方法,则退出
if(!window.scrollTo) {
return false;
}
//窗体滚动时,禁用鼠标滚轮
window.onmousewheel = function(){
return false;
};
//清除计时
if (document.body.movement) {
clearTimeout(document.body.movement);
}
var currentpos =BlogDirectory.getScrollBarPosition();//获取滚动条当前位置
var dist = 0;
if (currentpos == finalpos) {//到达预定位置,则解禁鼠标滚轮,并退出
window.onmousewheel = function(){
return true;
}
return true;
}
if (currentpos < finalpos) {//未到达,则计算下一步所要移动的距离
dist = Math.ceil((finalpos - currentpos)/10);
currentpos += dist;
}
if (currentpos > finalpos) {
dist = Math.ceil((currentpos - finalpos)/10);
currentpos -= dist;
}
var scrTop = BlogDirectory.getScrollBarPosition();//获取滚动条当前位置
window.scrollTo(0, currentpos);//移动窗口
if(BlogDirectory.getScrollBarPosition() == scrTop)//若已到底部,则解禁鼠标滚轮,并退出
{
window.onmousewheel = function(){
return true;
}
return true;
}
//进行下一步移动
var repeat = "BlogDirectory.moveScrollBar(" + finalpos + "," + interval + ")";
document.body.movement = setTimeout(repeat, 0);
},
htmlDecode:function (text){
var temp = document.createElement("div");
temp.innerHTML = text;
var output = temp.innerText || temp.textContent;
temp = null;
return output;
},
/*
创建博客目录,
id表示包含博文正文的 div 容器的 id,
mt st 和rt 分别表示主标题、次级标题和次次标题 的标签名称(如 H2、H3,H4 大写或小写都可以!),
interval 表示移动的速度
*/
createBlogDirectory:function (id, mt, st,interval){
//获取博文正文div容器
var elem = document.getElementById(id);
if(!elem) return false;
//获取div中所有元素结点
var nodes = elem.getElementsByTagName("*");
//创建博客目录的div容器
var divSideBar = document.createElement('DIV');
divSideBar.className = 'uprightsideBar';
divSideBar.setAttribute('id', 'uprightsideBar');
var divSideBarTab = document.createElement('DIV');
divSideBarTab.setAttribute('id', 'sideBarTab');
divSideBar.appendChild(divSideBarTab);
var h2 = document.createElement('H2');
divSideBarTab.appendChild(h2);
var txt = document.createTextNode('目录导航');
h2.appendChild(txt);
var divSideBarContents = document.createElement('DIV');
divSideBarContents.style.display = 'none';
divSideBarContents.setAttribute('id', 'sideBarContents');
divSideBar.appendChild(divSideBarContents);
//创建自定义列表
var dlist = document.createElement("dl");
divSideBarContents.appendChild(dlist);
var num = 0;//统计找到的mt和st
mt = mt.toUpperCase();//转化成大写
st = st.toUpperCase();//转化成大写
//遍历所有元素结点
for(var i=0; i<nodes.length; i++)
{
if(nodes[i].nodeName == mt|| nodes[i].nodeName == st)
{
//获取标题文本
var nodetext = nodes[i].innerHTML.replace(/<\/?[^>]+>/g,"");//innerHTML里面的内容可能有HTML标签,所以用正则表达式去除HTML的标签
nodetext = nodetext.replace(/ /ig, "");//替换掉所有的
nodetext = BlogDirectory.htmlDecode(nodetext);
//插入锚
nodes[i].setAttribute("id", "blogTitle" + num);
var item;
switch(nodes[i].nodeName)
{
case mt: //若为主标题
item = document.createElement("dt");
break;
case st: //若为子标题
item = document.createElement("dd");
break;
}
//创建锚链接
var itemtext = document.createTextNode(nodetext);
item.appendChild(itemtext);
item.setAttribute("name", num);
item.onclick = function(){ //添加鼠标点击触发函数
var pos = BlogDirectory.getElementPosition(document.getElementById("blogTitle" + this.getAttribute("name")));
if(!BlogDirectory.moveScrollBar(pos.top, interval)) return false;
};
//将自定义表项加入自定义列表中
dlist.appendChild(item);
num++;
}
}
if(num == 0) return false;
/*鼠标进入时的事件处理*/
divSideBarTab.onmouseenter = function(){
divSideBarContents.style.display = 'block';
}
/*鼠标离开时的事件处理*/
divSideBar.onmouseleave = function() {
divSideBarContents.style.display = 'none';
}
document.body.appendChild(divSideBar);
}
};
window.onload=function(){
/*页面加载完成之后生成博客目录*/
BlogDirectory.createBlogDirectory("cnblogs_post_body","h2","h3","h4",0);
}
</script>
页脚HTML#
点击查看代码
<!-- 百度统计访问量 -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?afa6227b2a48bc1f2a88277912acb326";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- lightbox的样式 -->
<link href="https://blog-static.cnblogs.com/files/pam-sh/lightbox.css" rel="stylesheet">
<!-- lightbox.js核心代码 -->
<script src="https://blog-static.cnblogs.com/files/pam-sh/lightbox-plus-jquery.js"></script>
<script type='text/javascript'>$('#cnblogs_post_body img').wrap(function(){return "<a href='"+$(this).attr("src")+"' data-lightbox='example-set'></a>"});</script>
<script type='text/javascript'>$(".code_img_closed").unwrap();</script>
<script type='text/javascript'>$(".code_img_opened").unwrap();</script>
<script type = 'text/javascript' >
<!-- 目录索引列表生成 -->
// by hsz
// 亲测,设置标题1为第一层目录不生效
function GenerateContentList()
{
if ($('#cnblogs_post_body').length == 0) { return; }
var jquery_h2_list = $('#cnblogs_post_body h2');
var jquery_h3_list = $('#cnblogs_post_body h3');
var jquery_h4_list = $('#cnblogs_post_body h4');
if (jquery_h2_list.length != 0)
{
var content = '<a name="_labelTop"></a>';
content += '<div id="navCategory">';
content += '<p style="font-size:18px"><b>目录</b></p>';
content += '<ul class="first_class_ul">';
for (var i = 0; i < jquery_h2_list.length; i++)
{
var go_to_top = '<div style="text-align: right"><a name="_label' + i + '"></a></div>';
$(jquery_h2_list[i]).before(go_to_top);
var li_content = '<li><a href="#_label' + i + '">' + $(jquery_h2_list[i]).text() + '</a></li>';
var nexth2Index = i + 1;
if (nexth2Index == jquery_h2_list.length) { nexth2Index = 0; }
var jquery_h3_list = $(jquery_h2_list[i]).nextUntil(jquery_h2_list[nexth2Index], "h3");
if (jquery_h3_list.length > 0)
{
li_content += '<ul class="second_class_ul">';
}
for (var j = 0; j < jquery_h3_list.length; j++)
{
var go_to_top2 = '<div style="text-align: right"><a name="_lab2_'+ i + '_' + j + '"></a></div>';
$(jquery_h3_list[j]).before(go_to_top2);
li_content +='<li><a href="#_lab2_'+ i +'_' + j + '">' + $(jquery_h3_list[j]).text() + '</a></li>';
var nexth3Index = j + 1;
var next;
if (nexth3Index == jquery_h3_list.length)
{
if (i + 1 == jquery_h2_list.length)
{
next = jquery_h2_list[0];
}
else
{
next = jquery_h2_list[i + 1];
}
}
else
{
next = jquery_h3_list[nexth3Index];
}
var jquery_h4_list = $(jquery_h3_list[j]).nextUntil(next, "h4");
if (jquery_h4_list.length > 0)
{
li_content += '<ul class="third_class_ul">';
}
for (var k = 0; k < jquery_h4_list.length; k++)
{
var go_to_third_Content = '<div style="text-align: right"><a name="_label3_' + i + '_' + j + '_' + k + '"></a></div>';
$(jquery_h4_list[k]).before(go_to_third_Content);
li_content += '<li><a href="#_label3_' + i + '_' + j + '_' + k + '">' + $(jquery_h4_list[k]).text() + '</a></li>';
}
if (jquery_h4_list.length > 0)
{
li_content += '</ul>';
}
li_content += '</li>';
}
if (jquery_h3_list.length > 0)
{
li_content +='</ul>';
}
li_content +='</li>';
content += li_content;
}
content += '</ul>';
content += '</div>';
}
else if (jquery_h3_list.length != 0)
{
var content = '<a name="_labelTop"></a>';
content += '<div id="navCategory">';
content += '<p style="font-size:18px"><b>目录</b></p>';
content += '<ul class="second_class_ul">';
for(var i =0; i < jquery_h3_list.length; i++)
{
var go_to_top2 = '<div style="text-align: right">a name="_lab2_'+ i + '_' + j + '"></a></div>';
$(jquery_h3_list[j]).before(go_to_top2);
var li_content = '<li><a href="#_lab' + i + '">' + $(jquery_h3_list[i]).text() + '</a></li>';
var nexth2Index = i + 1;
if (nexth2Index == jquery_h3_list.length) { nexth2Index = 0; }
var jquery_h4_list = $(jquery_h3_list[i]).nextUntil(jquery_h3_list[i+1], "h4");
if(jquery_h4_list.length>0)
{
li_content +='<ul class="third_class_ul">';
}
for(var j = 0;j < jquery_h4_list.length;j++)
{
var go_to_third_Content = '<div style="text-align: right"><a name="_label3_' + i + '_' + j + '_' + k + '"></a></div>';
$(jquery_h4_list[k]).before(go_to_third_Content);
li_content +='<li><a href="#_lab2'+ i +'_' + j + '">' + $(jquery_h4_list[j]).text() + '</a></li>';
}
if(jquery_h4_list.length>0)
{
li_content +='</ul>';
}
li_content +='</li>';
content += li_content;
}
content += '</ul>';
content += '</div>';
}
else if (jquery_h4_list.length != 0)
{
var content = '<a name="_labelTop"></a>';
content += '<div id="navCategory">';
content += '<p style="font-size:18px"><b>目录</b></p>';
content += '<ul>';
for(var i = 0; i < jquery_h4_list.length; i++)
{
var go_to_third_Content = '<div style="text-align: right"><a name="_label3_' + i + '_' + j + '_' + k + '"></a></div>';
$(jquery_h4_list[k]).before(go_to_third_Content);
var li_content = '<li><a href="#_label' + i + '">' + $(jquery_h4_list[i]).text() + '</a></li>';
content += li_content;
}
content += '</ul>';
content += '</div>';
}
else
{
return;
}
$($('#cnblogs_post_body')[0]).prepend(content);
}
GenerateContentList();
</script>
新博客主题#
第二次#
因为经常会出一些小问题,想换一个稳定版的。
侧边栏#
<script>
$('#profile_block img.sidebar-vip-logo').remove()
</script>
<script>
window.$silence = {
avatar: 'https://images.cnblogs.com/cnblogs_com/pam-sh/1845945/o_200911170904mmexport1516036776089.gif',
hljsln: true,
defaultMode: 'auto',
defaultTheme: 'h',
catalog: {
enable: true,
index: true,
active: true,
levels: ['h2', 'h3', 'h4'],
},
signature: {
enable: true,
author: '<a href="https://www.cnblogs.com/pam-sh/">Hang Shao</a>',
license: ['署名-非商业性使用-相同方式共享 4.0 国际', 'https://creativecommons.org/licenses/by-nc-sa/4.0/'],
remark: '<p>声明:本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出<a href="#" onclick="Curgo()" style="background:#11C2EE; color:#0; font-size:medium;">原文链接</a>,如有问题,可邮件(mir_soh@163.com)咨询. </p>',
}
};
</script>
<script src="https://blog-static.cnblogs.com/files/pam-sh/silence.min.js?t=1657245739"></script>
页面定制CSS#
@media only screen and (max-width:1365px){.github-corner{display:none}}@media only screen and (max-width:1259px){#home{width:100%!important}}@media only screen and (max-width:990px){#bannerbar{display:none}#header,.esa-mobile-menu{display:block!important}#header{width:auto;position:fixed!important;background:var(--blog-bg-color)}#header #blogTitle{margin-left:15px}#header #navigator{display:none;left:0;top:61px}#header #navigator #navList>li{float:none;position:relative;background:var(--blog-bg-color);height:34px;line-height:34px;width:120px;border-bottom:1px solid var(--border-color);border-right:1px solid var(--border-color)}#header #navigator #navList>li>a{float:none;width:inherit;padding:0 10px}#header #navigator #navList>li>a .arrow{position:absolute;top:.8rem;right:.8rem;transform:rotate(270deg) scaleX(-1)}#header #navigator #navList>li .esa-sub-navs{position:fixed;width:130px;top:0;left:121px;top:61px}#header #navigator #navList>li .esa-sub-navs .caret{display:none}#header #navigator #navList>li .esa-sub-navs ul{box-shadow:none;padding:0;border-radius:0}#header #navigator #navList>li .esa-sub-navs ul li{height:34px;line-height:34px;border:1px solid var(--border-color);border-top:none}#header #navigator #navList>li .esa-sub-navs ul li a{text-align:left;padding:0 10px}#header #navigator #navList>li i{display:none}#sideBar{display:none!important}#home{min-width:auto!important}#main{width:100%!important;padding:70px 0 0!important}#main .forFlow{margin-left:0!important;padding-left:15px;padding-right:15px}#main .forFlow .postBody{padding:0!important}#main .forFlow .postDesc{display:none}#main .forFlow #comment_form{padding:0!important}#main .forFlow .commentform{margin-left:0!important}#main .forFlow .day .postDesc,#main .forFlow .entrylist .entrylistItemPostDesc{display:none}#myposts .postDesc2{text-align:right!important}#myposts .postDesc2 span{display:none}.esa-toolbar .skin-popup{bottom:calc(50% - 67px)!important;border-radius:15px!important}}@font-face{font-family:Material Symbols Outlined;font-style:normal;font-weight:300;src:url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v7/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1i-q_4MrImHCIJIZrDDxHOem.ttf) format("truetype")}@font-face{font-family:Material Symbols Outlined;font-style:normal;font-weight:300;src:url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v7/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1n-q_4MrImHCIJIZrDDxHOem.ttf) format("truetype")}.material-symbols-outlined{font-family:Material Symbols Outlined;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr}:root{--loading-bg-color:##b0b0b0}:root[mode=light]{--blog-bg-color:#fff;--text-color:#596172;--border-color:#eef2f8;--catalog-bg-color:#fff;--panel-bg-color:#f8f8f8;--code-bg-color:#f1f3f4;--code-color:#bababa;--pane-box-shadow:0px 1px 15px #e6e6e6;--toolbar-box-shadow:0 2px 4px 1px #e8e8e8;--loading-bg-color:#fff}:root[mode=dark]{--blog-bg-color:#202020;--text-color:#d8d8d8;--border-color:#2f2f2f;--catalog-bg-color:#252525;--panel-bg-color:#252525;--code-bg-color:#3c3d40;--code-color:#9aa0a6;--pane-box-shadow:0px 1px 15px #0a0a0a;--toolbar-box-shadow:0 2px 4px 1px #151515;--loading-bg-color:#222}:root[theme=a]{--theme-color:#2d8cf0}:root[theme=b]{--theme-color:#fa7298}:root[theme=c]{--theme-color:#42b983}:root[theme=d]{--theme-color:#607d8b}:root[theme=e]{--theme-color:#5e72e4}:root[theme=f]{--theme-color:#ff9700}:root[theme=g]{--theme-color:#ff5722}:root[theme=h]{--theme-color:#009688}:root[theme=i]{--theme-color:#673bb7}:root[theme=j]{--theme-color:#906f61}*{margin:0;padding:0}body,html{height:100%}body{background:var(--blog-bg-color);color:var(--text-color);font-family:Lato,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;font-weight:300}table{border-collapse:collapse;border-spacing:0}td{padding:5px}fieldset,img{border:0}ul{word-break:break-all}li{list-style:none}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}a{color:var(--text-color);text-decoration:none}a:hover{color:var(--theme-color);transition:all .3s ease}::-moz-selection{background:var(--theme-color);color:#fff}::selection{background:var(--theme-color);color:#fff}#ad_c1,#ad_c2,#ad_t2,#author_profile,#comment_nav,#comment_pager_top,#green_channel,#homepage_top_pager,#lnkBlogLogo,#under_post_kb,#under_post_news,.blogStats,.c_ad_block,.dayTitle,.navbar,.under-comment-nav,.under-post-card{display:none}.clear{clear:both}#home{width:100%;height:100%;transition:width .3s ease}#header{width:960px;position:relative;top:0;right:0;left:0;margin:0 auto;border-top:0;border-bottom:1px solid var(--border-color);padding-bottom:0;display:block;height:60px;z-index:999}#blogTitle h1{font-size:25px;font-weight:600;font-family:Georgia;float:left;margin-top:15px}#blogTitle h2{display:none}#navigator{height:inherit;position:absolute;right:0;top:0}#navList{height:inherit;float:left}#navList>li{position:relative;float:left;line-height:60px;padding:0 15px;font-size:17px}#navList>li:hover i{width:100%;left:0}#navList>li>a:after{content:"";position:absolute;width:100%;height:4px;bottom:0;left:0;background-color:var(--theme-color);visibility:hidden;transform:scaleX(0);transition:.4s ease-in-out}#navList>li>a:hover:after{visibility:visible;transform:scaleX(1)}#navList .open{transform:rotate(180deg) scaleX(-1);transition-duration:.3s}#navList .esa-sub-navs{position:absolute;width:160px;top:60px;left:calc(50% - 80px);display:none}#navList .esa-sub-navs .caret{border-top:0 solid transparent;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid var(--blog-bg-color);width:0;position:relative;left:calc(50% - 8px)}#navList .esa-sub-navs ul{background-color:var(--blog-bg-color);box-shadow:var(--pane-box-shadow);border-radius:4px;padding:10px}#navList .esa-sub-navs ul li a{font-size:15px;overflow:hidden;display:flex;height:50px;justify-content:center;align-content:center;align-items:center}#navList .esa-sub-navs ul li a:hover{color:var(--theme-color);background:var(--panel-bg-color);border-radius:4px}#main{width:960px;margin:0 auto;min-height:calc(100% - 75px);padding:15px 0}#mainContent{float:right;margin-left:-25em;width:100%}#mainContent .forFlow{margin:0 auto 0 0;max-width:960px}#sideBar{width:230px;border-right:1px solid var(--border-color);font-weight:inherit;display:none;min-height:750px;padding:0 15px 0 0}#sideBar #profile_block{margin:0;font-size:0;display:flex;flex-wrap:wrap;text-align:left;line-height:1.6}#sideBar #profile_block a{box-sizing:border-box}#sideBar #profile_block a:first-child{font-size:18px;font-weight:700;width:100%;display:block;text-align:center;margin-bottom:14px}#sideBar #profile_block a:nth-child(3):after{content:"\56ed\9f84"}#sideBar #profile_block a:nth-child(5):after{content:"\7c89\4e1d"}#sideBar #profile_block a:nth-child(7):after{content:"\5173\6ce8"}#sideBar #profile_block a:nth-child(3),#sideBar #profile_block a:nth-child(5),#sideBar #profile_block a:nth-child(7){font-size:14px;width:33.3333333%;display:block;padding:0 4px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center}#sideBar #profile_block a:nth-child(3):after,#sideBar #profile_block a:nth-child(5):after,#sideBar #profile_block a:nth-child(7):after{color:#97979f;font-size:14px;display:block;text-overflow:ellipsis;overflow:hidden;width:100%}#sideBar #profile_block #p_b_follow{margin:15px 0 10px;text-align:center}#sideBar #profile_block #p_b_follow a{border:1px solid var(--border-color);font-size:13px;padding:7px 0;border-radius:4px;width:230px;font-weight:300}#sideBar #profile_block #p_b_follow a:hover{border-color:var(--theme-color)}.newsItem{margin-bottom:10px}.newsItem .catListTitle{display:none}#blog-calendar{border-top:1px solid var(--border-color)}#blog-calendar .CalDayHeader{font-weight:300}#blog-calendar .CalTodayDay{color:var(--theme-color);font-weight:600}#sideBarMain ul{line-height:1.6}.catListTitle{text-align:left;margin:20px 0;font-size:20px;font-weight:inherit;border-left:4px solid var(--theme-color);border-radius:4px;padding-left:7px}#sidebar_search #widget_my_zzk .input_my_zzk{color:#314659;border:1px solid var(--border-color);background-color:transparent;width:150px;height:32px;padding:0 7px;font-size:16px;border-radius:4px}#sidebar_search #widget_my_zzk .input_my_zzk:focus{outline:none}#sidebar_search #widget_my_zzk .btn_my_zzk{height:34px;font-size:14px;font-weight:300;background-color:transparent;color:var(--text-color);cursor:pointer;width:59px;outline:0;border:1px solid var(--border-color);border-radius:4px}#sidebar_search #widget_my_zzk .btn_my_zzk:hover{color:var(--theme-color);border:1px solid var(--theme-color);transition:all .3s ease}#sidebar_search #widget_my_google{display:none}#sidebar_toptags li{display:inline-grid}#sidebar_toptags li a{height:16px;line-height:16px;padding:5px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px;margin:0 6px 6px 0;display:inline-grid;border-radius:4px;background-color:var(--panel-bg-color);color:var(--text-color)}#sidebar_toptags li a:hover{transition:all .3s ease;color:#fff;background-color:var(--theme-color)}#sidebar_toptags li a .tag-count{display:none}#sidebar_categories li,#sidebar_scorerank li,#sidebar_shortcut li{font-size:15px;height:40px;padding-left:3px;line-height:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;list-style:none}#sidebar_recentposts li,#sidebar_topcommentedposts li,#sidebar_topdiggedposts li,#sidebar_topviewedposts li{font-size:15px;padding:7px 0;text-align:justify;border-bottom:1px solid var(--border-color)}#sidebar_recentposts li:first-child,#sidebar_topcommentedposts li:first-child,#sidebar_topdiggedposts li:first-child,#sidebar_topviewedposts li:first-child{border-top:1px solid var(--border-color)}#sidebar_recentcomments li{text-align:justify}#sidebar_recentcomments .recent_comment_title:nth-child(n+2){padding-top:10px}#sidebar_recentcomments .recent_comment_title:first-child{border-top:1px solid var(--border-color);padding-top:10px}#sidebar_recentcomments .recent_comment_body{border-radius:4px;padding:5px 10px;margin:5px 0;background-color:var(--panel-bg-color)}#sidebar_recentcomments .recent_comment_author{margin-right:0;text-align:right;padding-bottom:10px;border-bottom:1px solid var(--border-color)}#taglist_title,.entrylistTitle,.myposts_title,.PostListTitle,.thumbTitle{font-size:20px;font-weight:300;margin-bottom:10px;text-align:left}#taglist_title small,.entrylistTitle small,.myposts_title small,.PostListTitle small,.thumbTitle small{font-weight:inherit!important}.entrylistDescription{margin:15px auto;border-left:4px solid var(--border-color);text-align:justify;padding-left:7px}#myposts{margin-left:0}#myposts .PostList{border-bottom:1px solid var(--border-color);padding:0;margin:0}#myposts .PostList:first-of-type{border-top:1px solid var(--border-color)}#myposts .postTitl2{font-size:17px;margin:10px 0;text-align:justify}#myposts .postDesc2{text-align:right;margin-bottom:10px;font-size:14px}#myposts .postDesc2>a{display:none}#myposts .postDesc2:before{font-family:FontAwesome;content:"\f017";opacity:.7}.post-comment-count:before,.post-view-count:before{content:"\f1c5"}.post-comment-count:before,.post-view-count:before{font-family:Material Symbols Outlined;padding-left:10px;padding-right:5px;font-size:17px;position:relative;top:4px}.post-comment-count:before{content:"\e560"}.post-digg-count:before{font-family:Material Symbols Outlined;content:"\e9d2";padding-left:10px;padding-right:5px;font-size:17px;position:relative;top:4px}.day>.postSeparator{border-bottom:1px solid var(--border-color);text-align:justify;margin-bottom:10px;padding-bottom:10px}.day .postTitle2 span{display:flex;flex-wrap:wrap;align-items:center}.day .postTitle2 span span{order:1;font-size:0}.day .postTitle2 span span:after{content:"\7f6e\9876";margin-left:7px;padding:2px 10px;border-radius:4px;font-size:12px;color:var(--theme-color);background-color:var(--panel-bg-color);border:1px solid var(--border-color)}.day,.entrylistItem{border-bottom:1px solid var(--border-color);text-align:justify;margin-bottom:15px;padding-bottom:10px}.day .postTitle,.entrylist .entrylistPosttitle{font-size:19px}.day .postCon,.entrylist .entrylistPostSummary{font-size:16px;padding:10px 0}.day .postCon img,.entrylist .entrylistPostSummary img{border-radius:4px;margin-left:10px;height:120px;width:180px;border:1px solid rgba(0,0,0,.05)}.day .postCon a,.entrylist .entrylistPostSummary a{border-bottom:1px dotted var(--text-color);padding:2px 5px;font-size:14px;margin-top:10px;display:table}.day .postCon a:after,.entrylist .entrylistPostSummary a:after{content:"\00bb"}.day .postCon a:hover,.entrylist .entrylistPostSummary a:hover{border-bottom:1px dotted var(--theme-color)}.day .postDesc,.entrylist .entrylistItemPostDesc{text-align:right}.day .postDesc>a,.entrylist .entrylistItemPostDesc>a{display:none}.toc-container-header{font-size:20px;font-weight:700}#topics .postTitle{font-size:21px;font-weight:inherit}#topics .postBody{font-size:16px;line-height:1.75}#topics .postBody a{color:var(--theme-color)}#topics .postBody a:hover{opacity:.7}#topics .postBody a[data-lightbox]:hover{opacity:1}#topics .postBody h1{font-size:21px}#topics .postBody h2{font-size:20px}#topics .postBody h3{font-size:19px}#topics .postBody h4{font-size:18px}#topics .postBody h5{font-size:17px}#topics .postBody h6{font-size:16px}#topics .postBody p{margin:13px auto}#topics .postBody hr{border-top:none;border-bottom:1px solid var(--border-color)}#topics .postBody blockquote{border:none;margin:15px 0;color:inherit;border-radius:4px;padding:1px 15px;border-left:4px solid var(--theme-color);background-color:var(--panel-bg-color)}#topics .postBody em{padding-right:3px}#topics .postBody strong{margin:0 3px;font-weight:500}#topics .postBody img{display:block;margin:15px 0;border-radius:3px;box-shadow:var(--pane-box-shadow)}#topics .postBody .cnblogs-markdown pre{white-space:pre;position:relative}#topics .postBody ol li,#topics .postBody ul li{margin:3px 0}#topics .postBody table{font-size:15px;width:100%;margin:15px 0;display:block;overflow-x:auto;border:none}#topics .postBody table::-webkit-scrollbar{height:4px!important}#topics .postBody table th{background:var(--panel-bg-color);white-space:nowrap;font-weight:400}#topics .postBody table td,#topics .postBody table th{border:1px solid var(--border-color);padding:6px 15px;min-width:100px}#topics .postBody h1 code,#topics .postBody h2 code,#topics .postBody h3 code,#topics .postBody h4 code,#topics .postBody h5 code,#topics .postBody h6 code,#topics .postBody li>code,#topics .postBody p>code,#topics .postBody table code{line-height:1.2;font-family:consolas!important;vertical-align:middle;margin:0 3px;background-color:var(--code-bg-color)!important;color:var(--text-color);font-size:14px!important;padding:.2em .3em!important;border-radius:3px!important;border:none!important}#topics .postBody .hljs,#topics .postBody .hljsln{display:block;overflow-x:auto;background:var(--code-bg-color)!important;border:none!important;color:var(--text-color)!important;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace!important;font-size:15px!important;padding:10px 15px}#topics .postBody .hljs [class*=hljs-]{color:var(--text-color)!important}#topics .postBody #post_next_prev{font-size:14px;margin-top:10px}#topics .postBody #post_next_prev a{color:var(--text-color)}#topics .postDesc{border-top:1px solid var(--border-color);padding-top:5px;margin-top:5px;text-align:right}#topics #BlogPostCategory,#topics #EntryTag{font-size:14px;margin-bottom:5px}#topics #BlogPostCategory a,#topics #EntryTag a{font-size:13px;border-radius:4px;padding:4px 6px;background-color:var(--panel-bg-color);margin-right:5px;transition:none;color:var(--text-color)}#topics #BlogPostCategory a:hover,#topics #EntryTag a:hover{color:#fff;background-color:var(--theme-color);opacity:1;transition:all .3s ease}#topics #BlogPostCategory a:after,#topics #EntryTag a:after{content:none}#topics #BlogPostCategory:before{content:"\e574"}#topics #BlogPostCategory:before,#topics #EntryTag:before{font-family:Material Symbols Outlined;font-size:17px;position:relative;top:3px}#topics #EntryTag:before{content:"\f05b"}.cnblogs_code{font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace!important;border-radius:3px;overflow-x:auto;background:var(--code-bg-color)!important;border:none!important;color:var(--text-color)!important;font-size:15px!important;padding:10px 15px}.cnblogs_code .cnblogs_code_toolbar{display:none}.cnblogs_code pre{background:inherit!important;font-family:inherit!important;font-size:inherit!important}.cnblogs_code pre span{font-family:inherit!important;color:inherit!important}.cnblogs_code .code_img_closed,.cnblogs_code .code_img_opened{display:none!important}#footer{border-top:1px solid var(--border-color);font-size:13px;text-align:center;padding:15px 0}.louzhu{color:var(--theme-color);font-weight:500}.feedbackListSubtitle .sendMsg2This{background:transparent;padding-left:0;font-size:15px}.feedbackListSubtitle .sendMsg2This:before{content:"✉️"}.feedbackManage{float:right}.feedbackItem .feedbackCon{margin-bottom:10px;padding:10px 0;border-bottom:1px solid var(--border-color)}.feedbackItem .feedbackCon .comment_vote{margin-top:12px}.blog_comment_body{width:auto;border-radius:4px;padding:12px;margin-left:50px;margin-right:15px;background-color:var(--panel-bg-color);min-height:19px}.blog_comment_body img{border-radius:3px}#taglist_main{margin-top:0}#taglist_main table{width:100%}#taglist_main table tr td{padding:5px 0 5px 15px}#taglist_main table tr td:first-child{padding-left:0}#taglist_main table tr td .small{display:none}#taglist_main table tr td a{display:flex;padding:5px;border-radius:4px;background-color:var(--panel-bg-color);color:var(--text-color);align-content:center;justify-content:center}#taglist_main table tr td a:hover{color:#fff;background-color:var(--theme-color)}.topicListFooter{margin-right:0}#nav_next_page,.pager{color:var(--text-color);text-align:right;margin-right:0!important}#nav_next_page a,.pager a{color:var(--text-color);padding:5px 10px;border:1px solid var(--border-color);border-radius:4px}#nav_next_page a:hover,.pager a:hover{color:var(--theme-color);border:1px solid var(--theme-color)}.pager span.current{padding:3px 7px;border:1px solid var(--theme-color);background-color:var(--theme-color);border-radius:4px;margin:0 0 0 5px}.feedback_area_title{font-size:20px;border-bottom:1px solid var(--border-color);margin:20px 0;padding-bottom:10px}#commentform_title{background-image:none;padding-left:0;font-size:20px;margin-top:45px}#commentform_title>a{display:none}#commentform_title+span,#tip_comment2+p{display:none!important}.commentform .comment_textarea{width:100%;border:1px solid var(--border-color);background-color:transparent;padding:0;transition:none}.commentform .commentbox_title{border-bottom:1px solid var(--border-color)}.commentform .commentbox_title .commentbox_title_left .commentbox_tab{margin:0;padding:5px 15px;color:var(--text-color);border-bottom:none}.commentform .commentbox_title .commentbox_title_left .active{color:var(--theme-color)}.commentform .commentbox_title .commentbox_title_right{margin:0 10px 0 0}.commentform .commentbox_title .commentbox_title_right .comment_svg:hover,.commentform .commentbox_title .commentbox_title_right .comment_svg_stroke:hover{fill:var(--theme-color);stroke:var(--theme-color)}.commentform .commentbox_footer{border-top:1px solid var(--border-color)}.commentform .comment_option{margin-bottom:10px;margin-right:10px;fill:var(--text-color);color:var(--text-color)}.commentform .comment_option:hover{fill:var(--theme-color);color:var(--theme-color)}.commentform #tbCommentBody,.commentform #tbCommentBodyPreview{padding:10px 15px;background:transparent;color:var(--text-color);font-weight:300}.commentform #tbCommentBodyPreviewBody{margin-left:0;min-height:235px;background-color:transparent}.commentform #btn_comment_submit{width:auto;height:auto;border-width:0;cursor:pointer;color:#fff;background-color:var(--theme-color);border-color:var(--theme-color);font-weight:300;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:5px 17px;font-size:13px;border-radius:4px;outline:none;transition:all .3s}.commentform #btn_comment_submit:hover{opacity:.7}.commentform .comment_my_posted>img{display:none}.commentform .bq_post_comment{margin-top:5px;font-size:13px;display:block;color:var(--text-color);background-color:var(--border-color);border:none;border-radius:4px;padding:1px 15px}::-webkit-scrollbar{width:3px}::-webkit-scrollbar-thumb{background-color:var(--text-color)}#div_digg{margin:0;width:auto}#div_digg .buryit,#div_digg .diggit{background:none;height:auto;width:auto;min-width:75px;margin:0;font-size:17px;border-radius:4px;padding:3px 10px;background-color:var(--panel-bg-color)}#div_digg .buryit span,#div_digg .diggit span{font-size:inherit;color:inherit}#div_digg .buryit:hover,#div_digg .diggit:hover{color:#fff;background-color:var(--theme-color);transition:all .3s ease}#div_digg .diggit:before{font-family:Material Symbols Outlined;content:"\e8dc";font-size:17px;position:relative;top:3px}#div_digg .buryit{margin-left:15px}#div_digg .buryit:before{font-family:Material Symbols Outlined;content:"\e8db";font-size:17px;position:relative;top:3px}.github-corner:hover .octo-arm{-webkit-animation:octocat-wave .56s ease-in-out;animation:octocat-wave .56s ease-in-out}.github-corner svg{fill:var(--theme-color);z-index:999;cursor:pointer;position:fixed;top:0;border:0;left:0;transform:scaleX(-1)}@-webkit-keyframes octocat-wave{0%,to{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@keyframes octocat-wave{0%,to{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}.esa-mobile-menu{display:none;position:fixed;top:17px;right:20px;height:25px;width:25px;text-align:center;line-height:25px;z-index:941113;font-size:1.5em;cursor:pointer;color:var(--text-color);border-radius:4px}.esa-profile-avatar{border-radius:4px;width:100%}.esa-contents{position:fixed;top:0;right:0;bottom:0;background-color:var(--blog-bg-color);border-left:1px solid var(--border-color);overflow-y:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:1rem 0;width:252px;transform:translate3d(252px,0,0);z-index:1000}.esa-contents ul{padding:0 15px;overflow-y:auto}.esa-contents ul li{padding:5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;color:var(--text-color)}.esa-contents ul li .level1{margin-left:0}.esa-contents ul li .level2{margin-left:10px}.esa-contents ul li .level3{margin-left:26px}.esa-anchor{opacity:0;transition:opacity .3s ease;margin-left:8px}.active{transform:translateZ(0);transition:transform .3s ease}.noactive{transition-duration:.3s;transform:translate3d(252px,0,0)}.esa-post-signature{padding:12px 24px 12px 20px;margin-top:15px;font-size:15px;background:var(--panel-bg-color);position:relative;border-radius:4px;border-left:4px solid var(--theme-color)}.esa-post-signature p{margin:0!important}.esa-post-signature a{color:var(--text-color)!important}.esa-sponsor{position:relative;width:100%;height:85px;margin:100px 0}.esa-sponsor .title{text-align:center;margin-bottom:15px;min-height:30px;font-size:17px;font-weight:400;opacity:.8}.esa-sponsor .box{display:flex;align-content:center;justify-content:center}.esa-sponsor .box li{width:60px;float:left;margin:0!important;text-align:center;border:1px solid var(--border-color);border-right:0;background:transparent;cursor:pointer;line-height:0;opacity:1;list-style:none;margin:0;padding:6px 3px}.esa-sponsor .box li svg{opacity:.5}.esa-sponsor .box li:hover{background:var(--panel-bg-color);transition:all .3s ease}.esa-sponsor .box li:last-child{border-right:1px solid var(--border-color)}.esa-sponsor .qrshow{position:absolute;width:200px;height:200px;background:var(--blog-bg-color);box-shadow:var(--pane-box-shadow);cursor:pointer;left:calc(50% - 100px);top:-170px;z-index:999;display:none;border-radius:4px}.esa-sponsor .qrshow img{height:180px;width:180px;margin:10px!important;box-shadow:none!important}.esa-comment-avatar{float:left}.esa-comment-avatar img{height:43px;width:43px;border-radius:4px;transition:all .5s ease-out;-webkit-transition:all .6s ease-out}.esa-comment-avatar img:hover{border-radius:50%}.esa-toolbar{position:fixed;bottom:30px;right:30px;width:45px;height:45px;z-index:1001}.esa-toolbar .bars{position:relative;width:inherit;height:inherit;cursor:pointer;border-radius:50%;background:var(--theme-color);z-index:1;text-align:center;font-size:28px;font-weight:700;line-height:46px;color:#fff;transition:transform .3s ease;box-shadow:var(--toolbar-box-shadow)}.esa-toolbar .contents,.esa-toolbar .mode,.esa-toolbar .skin,.esa-toolbar .up{position:absolute;cursor:pointer;bottom:0;right:0;height:35px;width:35px;text-align:center;line-height:35px;z-index:0;opacity:0;border-radius:4px;box-shadow:var(--toolbar-box-shadow);background-color:var(--blog-bg-color);transition:all .3s ease}.esa-toolbar .contents:hover,.esa-toolbar .mode:hover,.esa-toolbar .skin:hover,.esa-toolbar .up:hover{color:#fff;background-color:var(--theme-color)}.esa-toolbar .bars-show{transform:rotate(270deg)}.esa-toolbar .up-show{transform:translate3d(0,-200%,0);opacity:1}.esa-toolbar .mode-show{transform:translate3d(-140%,-140%,0);opacity:1}.esa-toolbar .skin-show{transform:translate3d(-200%,0,0);opacity:1}.esa-toolbar .contents-show{transform:translate3d(-350%,0,0);opacity:1}.esa-toolbar .skin-popup{display:none;position:fixed;left:calc(50% - 100px);bottom:0;padding:25px;opacity:1;width:150px;height:auto;border-radius:4px 4px 0 0;background-clip:border-box;box-shadow:var(--toolbar-box-shadow);background-color:var(--blog-bg-color)}.esa-toolbar .skin-popup .item{text-align:center}.esa-toolbar .skin-popup .title{font-size:17px;margin-bottom:.5em}.esa-toolbar .skin-popup .themes button{font-size:1em;position:relative;width:calc(1.75em - 5px);height:calc(1.75em - 5px);border-radius:.15em;cursor:pointer;margin:2.5px;flex-shrink:0;justify-self:center;transition:all .15s;overflow:hidden;background:transparent;z-index:1;box-sizing:border-box;outline:none;border:none}@-webkit-keyframes loading{0%{opacity:0}to{opacity:1}}@keyframes loading{0%{opacity:0}to{opacity:1}}.loading{position:fixed;top:0;left:0;bottom:0;right:0;display:flex;justify-content:center;align-items:center;z-index:99999;background:var(--loading-bg-color)}.loading .box h2{color:#777;margin:0;font:.8em verdana;text-transform:uppercase;letter-spacing:.1em;text-align:center}.loading .box span{display:inline-block;vertical-align:middle;width:.6em;height:.6em;margin:.19em;background:#007db6;border-radius:.6em;-webkit-animation:loading 1s infinite alternate;animation:loading 1s infinite alternate}.loading .box span:nth-of-type(2){background:#008fb2;-webkit-animation-delay:.2s;animation-delay:.2s}.loading .box span:nth-of-type(3){background:#009b9e;-webkit-animation-delay:.4s;animation-delay:.4s}.loading .box span:nth-of-type(4){background:#00a77d;-webkit-animation-delay:.6s;animation-delay:.6s}.loading .box span:nth-of-type(5){background:#00b247;-webkit-animation-delay:.8s;animation-delay:.8s}.loading .box span:nth-of-type(6){background:#5ab027;-webkit-animation-delay:1s;animation-delay:1s}.loading .box span:nth-of-type(7){background:#a0b61e;-webkit-animation-delay:1.2s;animation-delay:1.2s}
/*显示阅读量*/
#blogStats {
height: 40px;
width: 230px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-content: center;
align-items: center;
justify-content: space-around;
font-size: 14px;
}
#blogStats span {
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-content: center;
align-items: center;
justify-content: space-evenly;
}
/*去广告*/
#cnblogs_ch{
display: none !important;
}
.c_ad_block {
display: none !important;
}
#commentform_title{
display: none !important;
}
#ad_t2{
display: none !important;
}
.itnews{
display: none !important;
}
.recomm-block{
display: none !important;
}
.under-post-card{
display: none !important;
}
页首HTML#
<div class="light-loading">
<div class="box">
<span></span><span></span><span></span><span></span><span></span><span></span><span></span>
</div>
</div>
<a href="https://github.com/Hang-shao" class="github-corner" aria-label="View source on GitHub">
<svg width="50" height="50" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: fixed; top: 0; border: 0; right: 0;" aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
</svg></a>
<style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}} </style>
页脚HTML#
<!-- 百度统计访问量 -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?afa6227b2a48bc1f2a88277912acb326";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
作者:Hang Shao
出处:https://www.cnblogs.com/pam-sh/p/16099768.html
版权:本作品采用「知识共享」许可协议进行许可。
声明:欢迎交流! 原文链接 ,如有问题,可邮件(mir_soh@163.com)咨询.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)
2021-04-04 BMP文件格式