【问题标题】:Gwt Bootstrap add Image to dropdown menu not submenuGwt Bootstrap将图像添加到下拉菜单而不是子菜单
【发布时间】:2015-01-02 12:31:53
【问题描述】:

我必须在引导下拉菜单(而不是子菜单)中显示图像而不是文本。我不知道如何实现这一点。谁能帮助我实现这一目标?

【问题讨论】:

    标签: gwt gwt-bootstrap


    【解决方案1】:

    你喜欢这样:

    示例:

    <div class="dropdown">
      <button id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        <img src="http://www.goodfellasmagazine.com/wp-content/uploads/2013/11/Most-famous-lol-face.jpg" alt="">
        <span class="caret"></span>
      </button>
      <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
       your texte here :  
      </ul>
    </div>
    

    LIVE DEMO

    【讨论】:

      猜你喜欢
      • 2013-04-03
      • 1970-01-01
      • 2014-10-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-30
      • 1970-01-01
      • 2020-02-24
      相关资源
      最近更新 更多