博客代码设置
1、为了使博客生成目录,使用的两个代码
1)页面定制CSS代码
/*生成博客目录的CSS*/
#uprightsideBar{
font-size:12px;
font-family:Arial, Helvetica, sans-serif;
text-align:left;
position:fixed;/*将div的位置固定到距离top:50px,right:0px的位置,这样div就会处在最右边的位置,距离顶部50px*/
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;
font-size: 16px;
padding: 7px 0px;
}
#sideBarTab h2{
font-weight:600;
}
#sideBarContents{
float:left;
overflow:auto;
overflow-x:hidden;!important;
min-width:200px;
min-height:108px;
max-height:460px;
border:1px solid #e5e5e5;
border-right:none;
background:#ffffff;
}
#sideBarContents dl{
margin:0;
padding:0;
}
#sideBarContents dt{
font-size:14px;
margin-top:5px;
margin-left:5px;
}
#sideBarContents dd, dt {
cursor: pointer;
}
#sideBarContents dd:hover, dt:hover {
color:#A7995A;
}
#sideBarContents dd{
margin: 6px 0 6px 22px;
}
2)页首html代码
生成页首的js代码
2、为了能够使用markdown的流程图功能,在页脚HTML代码下,使用如下.js代码
graph LR
A[方形] -->B(圆角)
B --> C{条件a}
C -->|a=1| D[结果1]
C -->|a=2| E[结果2]
F[横向流程图]