【问题标题】:How to remove a label in <li> element and add image using tritium?如何删除 <li> 元素中的标签并使用氚添加图像?
【发布时间】:2014-10-28 04:31:42
【问题描述】:

如何去除标签中的

  • 元素并使用氚将图像添加到相同元素 我怎样才能添加一个冲刺图像来代替那个
  • 元素
    <div id="TopMenu">
                <ul style="display:">
                    <li style="display:" class="First"><a href="#" data-transition="slide" class="ui-link">My Account</a></li>
                    <li style="display:" class="CartLink"><a href="#" data-transition="slide" class="ui-link">View Cart <span></span></a></li>
    
                </ul>
    </div>
    
  • 【问题讨论】:

    • 你的html中没有标签。

    标签: moovweb tritium


    【解决方案1】:

    首先在您的 sn-p 中没有标签元素... 但删除任何元素使用“删除”功能。

    i.e. remove('label') //this will remove all label in scope
    
    Now you also want to add sprite image.
    
    
     1. Just add your images in folder name as 'sprites'
             --path-- /assets/images/sprites
        2. Now it will include in sprites.png auto When Moovweb project run
        3. use class 'sprites-'+imagename where you want to place.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-12
      • 1970-01-01
      相关资源
      最近更新 更多