Drme
Drme
  • 发布:2016-05-12 11:35
  • 更新:2016-05-12 12:56
  • 阅读:2136

Bug 底部菜单被顶起

分类:MUI
mui

手机设备:红米note3
设备:红米note3 真机运行
helllo-mui examples中的input示例:
我给其加了底部菜单, 在示例中直接修改页面入口后启动,直接手机真机运行,点击 搜索框 后底部菜单没被顶起
我自己建了个app项目,将helllo-mui examples中的input示例 copy过来,修改自带js和css路径,真机运行,点击 搜索框 后底部菜单被顶起
这个是不是Bug???
代码如下:

 <!DOCTYPE html>  
<html>  

    <head>  
        <meta charset="utf-8">  
        <title>Hello MUI</title>  
        <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">  
        <meta name="apple-mobile-web-app-capable" content="yes">  
        <meta name="apple-mobile-web-app-status-bar-style" content="black">  

        <!--标准mui.css-->  
        <link rel="stylesheet" href="css/mui.min.css">  
        <!--App自定义的css-->  
        <link rel="stylesheet" type="text/css" href="css/app.css" />  
        <style>  
            h5 {  
                margin: 5px 7px;  
            }  
        </style>  
    </head>  

    <body>  
        <header class="mui-bar mui-bar-nav">  
            <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>  
            <h1 class="mui-title">input(输入框)</h1>  
        </header>  
        <div class="mui-content">  
            <div class="mui-content-padded" style="margin: 5px;">  
                <h5>默认搜索框:</h5>  
                <div class="mui-input-row mui-search">  
                    <input type="search" class="mui-input-clear" placeholder="">  
                </div>  
                <h5 class="mui-plus-visible">语音输入搜索框:</h5>  
                <div class="mui-input-row mui-search mui-plus-visible">  
                    <input id="search" type="search" class="mui-input-speech mui-input-clear" placeholder="带语音输入的搜索框">  
                </div>  
                <h5>密码框:</h5>  
                <div class="mui-input-row mui-password">  
                    <input type="password" class="mui-input-password">  
                </div>  
                <form class="mui-input-group">  
                    <div class="mui-input-row">  
                        <label>Input</label>  
                        <input type="text" placeholder="普通输入框">  
                    </div>  
                    <div class="mui-input-row">  
                        <label>Input</label>  
                        <input type="text" class="mui-input-clear" placeholder="带清除按钮的输入框">  
                    </div>  

                    <div class="mui-input-row mui-plus-visible">  
                        <label>Input</label>  
                        <input type="text" class="mui-input-speech mui-input-clear" placeholder="语音输入">  
                    </div>  
                    <div class="mui-button-row">  
                        <button type="button" class="mui-btn mui-btn-primary" onclick="return false;">确认</button>&nbsp;&nbsp;  
                        <button type="button" class="mui-btn mui-btn-danger" onclick="return false;">取消</button>  
                    </div>  
                </form>  
                <div class="mui-input-row" style="margin: 10px 5px;">  
                    <textarea id="textarea" rows="5" placeholder="多行文本框"></textarea>  
                </div>  
            </div>  
        </div>  
        <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-home"></span>  
                <span class="mui-tab-label">首页</span>  
            </a>  
            <a class="mui-tab-item" href="tab-webview-subpage-chat.html">  
                <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="tab-webview-subpage-contact.html">  
                <span class="mui-icon mui-icon-contact"></span>  
                <span class="mui-tab-label">通讯录</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">设置</span>  
            </a>  
        </nav>  
        <script src="js/mui.min.js"></script>  
        <script>  
            mui.init({  
                swipeBack: true //启用右滑关闭功能  
            });  
             //语音识别完成事件  
            document.getElementById("search").addEventListener('recognized', function(e) {  
                console.log(e.detail.value);  
            });  
        </script>  
    </body>  
</html>
2016-05-12 11:35 负责人:无 分享
已邀请:
苏禾然

苏禾然

你可以让搜索框获取焦点的同时,隐藏底部菜单,失去焦点的时候再显示出来,另外,你看过自己的发的代码了吗?乱的一塌糊涂

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