yyyang
yyyang
  • 发布:2014-12-20 20:11
  • 更新:2015-05-06 10:00
  • 阅读:1664

请问选项卡能不能放在上方

分类:MUI

请问选项卡能不能固定放在上方?我看demo全是固定在最下方

2014-12-20 20:11 负责人:无 分享
已邀请:
iuyisheng

iuyisheng

搞定了吗

DCloud_UNI_FXY

DCloud_UNI_FXY

试试这个。

<style>  
.mui-bar-nav~.mui-content{  
padding-top:50px;  
}  
.mui-bar-tab~.mui-content{  
padding-bottom: 0px;  
}  
</style>  
<nav class="mui-bar mui-bar-tab mui-bar-nav">  
            <a class="mui-tab-item mui-active" href="#tabbar">  
                <span class="mui-icon mui-icon-home"></span>  
                <span class="mui-tab-label">首页</span>  
            </a>  
            <a class="mui-tab-item" href="#tabbar-with-chat">  
                <span class="mui-icon mui-icon-email"><span class="mui-badge">9</span></span>  
                <span class="mui-tab-label">消息</span>  
            </a>  
            <a class="mui-tab-item" href="#tabbar-with-contact">  
                <span class="mui-icon mui-icon-contact"></span>  
                <span class="mui-tab-label">通讯录</span>  
            </a>  
            <a class="mui-tab-item" href="#tabbar-with-map">  
                <span class="mui-icon mui-icon-gear"></span>  
                <span class="mui-tab-label">设置</span>  
            </a>  
        </nav>
iuyisheng

iuyisheng

可以没有问题 谢谢

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