第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

單擊提交按鈕時(shí)顯示加載 Gif

單擊提交按鈕時(shí)顯示加載 Gif

慕森王 2021-11-04 17:50:25
我正在為我的網(wǎng)站使用上傳圖片插件,當(dāng)用戶在移動(dòng)設(shè)備上單擊提交時(shí),他們看不到任何進(jìn)度,因此他們一次又一次地單擊提交按鈕,我收到太多相同的帖子,我想在他們顯示加載 gif 圖像時(shí)點(diǎn)擊提交按鈕,這是插件表單<form id="usp_form" method="post" enctype="multipart/form-data" action="">\\rest code here<input type="submit" class="usp-submit" id="user-submitted-post" name="user-submitted-post" value="<?php esc_attr_e('Submit Post', 'usp'); ?>"></form>我已經(jīng)嘗試過在堆棧上找到這個(gè),但沒有用<img src="https://www.punjabidharti.com/wp-content/plugins/wp-email/images/loading.gif" id="img" style="display:none"/ >    <script type="text/javascript">    $('#usp_form').submit(function() {    $('#img').css('visibility', 'visible');});</script>這是我的上傳圖片網(wǎng)址https://www.punjabidharti.com/upload-pictures/希望你能幫助我
查看完整描述

2 回答

?
郎朗坤

TA貢獻(xiàn)1921條經(jīng)驗(yàn) 獲得超9個(gè)贊

display: none在布局文件中使用 div并display:block在需要時(shí)制作


<div style="z-index: 5000; display:none;" id="loadingDiv">

    <table style="margin: 0px auto;">

        <tr>

            <td style="padding-top:200px;" align="center"><img src="https://www.punjabidharti.com/wp-content/plugins/wp-email/images/loading.gif" alt="loading image"/></td>

        </tr>

    </table>

</div>


$('#usp_form').submit(function() {

    // javascript way

    document.getElementById("loadingDiv").style.display = 'block';

    // jquery way

    $('#loadingDiv').show();  

});

更新


layout level files can be any of following:


layout.html

index.html

header.html

footer.html

您可以嘗試另一個(gè) gif 圖像,例如https://i.stack.imgur.com/rBLb3.gif


查看完整回答
反對(duì) 回復(fù) 2021-11-04
?
慕田峪4524236

TA貢獻(xiàn)1875條經(jīng)驗(yàn) 獲得超5個(gè)贊

你已經(jīng)在你的 img 中添加了 'style="display:none"' 但在你正在做的代碼中:

$('#img').css('visibility', 'visible');

你應(yīng)該做:

$('#img').css('display', 'inline-block');


查看完整回答
反對(duì) 回復(fù) 2021-11-04
  • 2 回答
  • 0 關(guān)注
  • 306 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)