Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/381.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用ios在Jquery mobile中向上滚动弹出窗体_Javascript_Css_Jquery Mobile_Jquery Mobile Popup - Fatal编程技术网

Javascript 使用ios在Jquery mobile中向上滚动弹出窗体

Javascript 使用ios在Jquery mobile中向上滚动弹出窗体,javascript,css,jquery-mobile,jquery-mobile-popup,Javascript,Css,Jquery Mobile,Jquery Mobile Popup,我使用jquery mobile在弹出窗口中创建了一个表单。这是形式代码 <div data-role="popup" id="popupDetailles" data-theme="a" data-overlay-theme="b" style="width:100%;" data-transition="pop" class="ui-corner-all ui-popup ui-body-c ui-overlay-shadow" data-dismissible="false">

我使用jquery mobile在弹出窗口中创建了一个表单。这是形式代码

 <div data-role="popup" id="popupDetailles" data-theme="a" data-overlay-theme="b" style="width:100%;" data-transition="pop" class="ui-corner-all ui-popup ui-body-c ui-overlay-shadow" data-dismissible="false">
    <a href="#" data-rel="back" data-role="button" data-theme="b" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
    <form>
        <div style="padding:0px 5px 0px 5px;">
            <h3 style="text-align: center;" id="header-popup"></h3>
            <hr width="100%" size="2" color="black">

            <h4 style="margin-bottom:0">Type de main doeuvre <span class="style2" style="color: red">*</span></h4>
               <select name="typeMainOeuvre" data-theme="a" id="typeMainOeuvre" required>
                </select>

            <h4 style="margin-bottom:0">Type de temps</h4>
            <select name="typeTemps" data-theme="a" id="typeTemps">
            </select>

            <div id="div_dureeTS">
                <h4 style="margin-bottom:0">Heures de travail</h4>
                <div align="center">
                    <input name="txtDuree" id="txtDuree" type="text" data-role="datebox" data-options='{"mode":"durationflipbox", "overrideDurationOrder": ["h", "i"], "overrideTimeFormat": 24, "maxDur":85500, "overrideDurationFormat":"%Dl:%DM", "themeButton": "b", "themeInput": "a", "theme": "a", "themeHeader": "a", "hideInput": true, "useInlineBlind":true, "useLang": "fr"}' />
                </div>
            </div>

            <div id="div_dureeTS">
                <h4 style="margin-bottom:0">Heure de début de la journée</h4>
                <div align="center">
                    <input name="txtDebutJournee" id="txtDebutJournee" type="text" data-role="datebox" data-options='{"mode":"durationflipbox", "overrideDurationOrder": ["h", "i"], "overrideTimeFormat": 24, "maxDur":85500, "overrideDurationFormat":"%Dl:%DM", "themeButton": "b", "themeInput": "a", "theme": "a", "themeHeader": "a", "hideInput": true, "useInlineBlind":true, "useLang": "fr"}' />
                </div>
            </div>


            <h4 style="margin-bottom:0">Frais de stationnement ($)</h4>
            <input name="frais_stationnement" data-theme="a" id="frais_stationnement" type="number" class="classe-frais_stationnement" min='0' max='9999999' onkeypress="return isNumberKey(event, this.id)"/>

            <h4 style="margin-bottom:0">Kilométrage (Km)</h4>

            <input name="Kilometrage" data-theme="a" id="Kilometrage"  type="number" class="classe-Kilometrage" min='0' max='9999999' onkeypress="return isNumberKey(event, this.id)"/>
            <label>
                <input type="checkbox" id="frais_deplacement" name="frais_deplacement"> Inclure frais de déplacement CCQ (65km et plus) 
            </label>

            <h4 style="margin-bottom:0">Commentaire</h4>
            <textarea name="textarea" data-theme="a" id="txtCommentTimeSheet"></textarea>

            <div align="center">
                <button type="button" data-icon="check" data-position="fixed" data-inline="true" data-theme="b" class="buttonBlue" id="btnSaveHeures">Sauvegarder</button>
            </div>
        </div>

    </form>
</div>
sumbit按钮在Android设备中工作。但是,当我尝试使用iphone单击submit按钮时,它不起作用,会跳到页面顶部。

将您的类型更改为:

<button type="submit" data-icon="check" data-position="fixed" data-inline="true" data-theme="b" class="buttonBlue" id="btnSaveHeures">Sauvegarder</button>