最佳答案
所有你需要的:
.treeView li.collapsibleListOpen {
background: url('http://code.stephenmorley.org/javascript/collapsible-lists/button-open.png') no-repeat 1em 0.5em;
list-style: none;
}
.treeView li.collapsibleListClosed {
background: url('http://code.stephenmorley.org/javascript/collapsible-lists/button-closed.png') no-repeat 1em 0.5em;
list-style: none;
}
.treeView li {
padding: 0px 2em;
/* rest of the styles */
}
关于css - 在 TreeView 中定位图像(图标),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26000656/