私のページでは、ajax loader gifを使用しています。ボタンがクリックされると、ajaxローダが表示されますが、その下のテキストは上に移動し、それらを一定にしたいと思います。移動しないことを意味します。 これを行う方法はありますか?手伝ってくれてありがとう。ajaxローダーがロードされると、その下のテキストとボタンが上に移動します
それだけでなく、ここから見ることができます。
function AjaxLoader()
{
document.getElementById("translation").innerHTML="<img src='ajax-loader.gif' />"
$.ajax({
type: "POST",
url: "test1.php",
success: function(response) {
$("#translation").html("hello");
}
});
}
<div class="informationArea">
<h2><span id="infoaream">caballo</span></h2>
<div id="wordDetailArea">
<h2>Translation:</h2><p><span id="translation">dog</span></p>
<h2>Context:</h2><p><span id="context">I have got a dog.</span></p>
</div>
</div>
ありがとう – user1264362