【问题标题】:Positioning images (icons) in treeview在树视图中定位图像(图标)
【发布时间】:2014-11-17 23:42:33
【问题描述】:

我试图将 - 和 + 图标放置在树线的右侧,但在文本“哺乳动物”和“大象”之前

http://cssdeck.com/labs/sd1cnqm7

【问题讨论】:

    标签: css image positioning


    【解决方案1】:

    所有你需要的:

    .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 */
    }
    

    演示: http://jsfiddle.net/suaLyrop/

    【讨论】:

      猜你喜欢
      • 2014-09-29
      • 1970-01-01
      • 2021-12-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多