jamzhang
jamzhang
  • 发布:2016-09-01 23:10
  • 更新:2016-10-20 23:34
  • 阅读:3527

使用extra-icon的问题

分类:MUI

<nav class="mui-bar mui-bar-tab">  
            <a id="defaultTab" class="mui-tab-item mui-active" href="tab-webview-subpage-about.html">  
                <span class="mui-icon  mui-icon-chatbubble"></span>  
                <span class="mui-tab-label">message</span>  
            </a>  
            <a class="mui-tab-item" href="tab-webview-subpage-chat.html">  
                <span class="mui-icon mui-icon-contact"></span>  
                <span class="mui-tab-label">contacts</span>  
            </a>  
            <a class="mui-tab-item" href="tab-webview-subpage-contact.html">  
                <span class="mui-icon mui-icon-extra-find"><span class="mui-badge">9</span></span>  
                <span class="mui-tab-label">finding</span>  
            </a>  
            <a class="mui-tab-item" href="tab-webview-subpage-setting.html">  
                <span class="mui-icon mui-icon-gear"></span>  
                <span class="mui-tab-label">setting</span>  
            </a>  
        </nav>

如上,想引用extra-icon的find的图标,结果变成了icon里面的compose图标,是什么原因呢

2016-09-01 23:10 负责人:无 分享
已邀请:
s***@163.com

s***@163.com

<link rel="stylesheet" type="text/css" href="../css/icons-extra.css" />
在tabbar选项卡里使用扩展图标时,需要同时添加 mui-icon mui-icon-extra 这两个class标志
<span class="mui-icon mui-icon-extra mui-icon-extra-find"></span>

Trust

Trust - 少说废话

同时需要添加mui-icon-extra类来引入匹配的字体文件。

jamzhang

jamzhang (作者)

> > <a class="mui-tab-item" href="tab-webview-subpage-contact.html">
<span class="mui-icon mui-icon-contact"></span>
<span class="mui-tab-label">contacts</span>
</a>
<a class="mui-tab-item" href="tab-webview-subpage-finding.html">
<span class="mui-icon-extra mui-icon-extra-find"></span>
<span class="mui-tab-label">finding</span>
</a>
<a class="mui-tab-item" href="tab-webview-subpage-setting.html">
<span class="mui-icon mui-icon-gear"></span>
<span class="mui-tab-label">setting</span>

不行啊,效果变成了附件的样子,如果要变成跟其他三个图标一样的效果,需要重写css?

w***@163.com

w***@163.com

同问,extra-icon放在tab中,成左右结构了,跟icon类不同

  • s***@163.com

    需要同时添加 mui-icon mui-icon-extra 这两个class标志

    2016-10-20 23:35

该问题目前已经被锁定, 无法添加新回复