/*生成博客目录的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;  
}  
    
#sideBarContents{  
    float:left;  
    overflow:auto;   
    overflow-x:hidden;!important;  
    width:270px;  
    min-height:108px;  
    max-height:460px;  
    border:1px solid #e5e5e5;  
    border-right:none;   
    background:#ffffff;  
}  
#sideBarContents dl{  
    margin:0;  
    padding:0;  
}  
    
#sideBarContents dt{  
    margin-top:5px;  
    margin-left:5px;  
}  
    
    
.post>h2{  
    text-align: center;  
    font-size: xx-large;  
}  
    
#sideBarContents h1 {  
    margin-top: 10px;  
    font-size: 15px  
}  
    
#sideBarContents h2 {  
    margin-top: 10px;  
    font-size: 15px  
}  
    
    
#sideBarContents h3 {  
    margin-top: 10px;  
    font-size: 15px  
}  
    
#sideBarContents dd, dt {  
    cursor: pointer;  
}  
    
#sideBarContents dd:hover, dt:hover {  
    color:#A7995A;  
}  
#sideBarContents dd{  
    margin-left:20px;  
}  
    
    
/*cnblogs_post_body */  
    
ol{  
    list-style-type:none;  
    padding-left: 0px;  
    
    }  
    
.cnblogs_post_body ol li {  
    list-style-type: none;  
}  
    
        
/*添加h1目录开始*/  
#main {  
  counter-reset: section1;  
}  
    
    
#main h1::before {  
  counter-increment: section1;  
  content: "" counter(section1) " ";  
}  
    
    
/*添加h2目录开始*/  
#main  h1 {  
  counter-reset: section2;  
}  
#main ol h2::before {  
  counter-increment: section2;  
  content: counter(section1) "." counter(section2) " ";  
}  
    
    
/*添加h3目录开始*/  
.cnblogs_post_body  h2 {  
  counter-reset: section3;  
}  
.cnblogs_post_body  h3::before {  
  counter-increment: section3;  
  content: counter(section1) "."counter(section2) "." counter(section3) " ";  
}  
    
    
    
    
/*sideBarContents  */  
    
#sideBarContents    ol{  
    list-style-type:none;  
    padding-left: 0px;  
    
    }  
    
#sideBarContents  ol li {  
    list-style-type: none;  
}  
    
        
/*添加h1目录开始*/  
#sideBarContents  {  
  counter-reset: section1;  
}  
    
    
#sideBarContents   h1::before {  
  counter-increment: section1;  
  content: "" counter(section1) " ";  
}  
    
    
/*添加h2目录开始*/  
#sideBarContents   h1 {  
  counter-reset: section2;  
}  
#sideBarContents  h2::before {  
  counter-increment: section2;  
  content: counter(section1) "." counter(section2) " ";  
}  
    
    
/*添加h3目录开始*/  
#sideBarContents   h2 {  
  counter-reset: section3;  
}  
#sideBarContents   h3::before {  
  counter-increment: section3;  
  content: counter(section1) "."counter(section2) "." counter(section3) " ";  
}  