一、说明
二、文章目录功能
1、添加CSS样式
- 打开
themes\yilia\source
下的main.234bc0.css
文件,添加如下代码:
#container .show-toc-btn,#container .toc-article{
display:block}
.toc-article{
z-index:100;background:#fff;border:1px solid #ccc;max-width:250px;min-width:150px;max-height:500px;overflow-y:auto;-webkit-box-shadow:5px 5px 2px #ccc;box-shadow:5px 5px 2px #ccc;font-size:12px;padding:10px;position:fixed;right:35px;top:129px}.toc-article .toc-close{
font-weight:700;font-size:20px;cursor:pointer;float:right;color:#ccc}.toc-article .toc-close:hover{
color:#000}.toc-article .toc{
font-size:12px;padding:0;line-height:20px}.toc-article .toc .toc-number{
color:#333}.toc-article .toc .toc-text:hover{
text-decoration:underline;color:#2a6496}.toc-article li{
list-style-type:none}.toc-article .toc-level-1{
margin:4px 0}.toc-article .toc-child{
}@-moz-keyframes cd-bounce-1{0%{
opacity:0;-o-transform:scale(1);-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}60%