checktree.css

来自「通过css+js实现树形结构」· CSS 代码 · 共 42 行

CSS
42
字号
/* Some formatting for the menu UL tags themselves; remove margins */
ul.checktree, ul.checktree ul {
 list-style-type: none;
 padding: 0;
 margin: 0;
 font: 10px sans-serif;
}

/*
LI tags have a different background depending if they're the last node, and padding
The script will automatically assign these CSS classes to LI tags depending on their
expanded state, so we style them appropriately here.
*/
ul.checktree li {
 background: url(images/node.gif) no-repeat;
 margin: 0;
 padding: 0 0 0 16px;
 cursor: default;
}
ul.checktree li.last {
 background-image: url(images/node-last.gif);
}
ul.checktree li.plus {
 background-image: url(images/plus.gif);
}
ul.checktree li.plus-last {
 background-image: url(images/plus-last.gif);
}
ul.checktree li.minus {
 background-image: url(images/minus.gif);
}
ul.checktree li.minus-last {
 background-image: url(images/minus-last.gif);
}


/* The check-count SPANs. */
ul.checktree span.count {
 text-indent: 5pt;
 color: #999;
 font-style: italic;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?