別のサイトからデータを取得する jquery があります。
get.php
<div>
displays a list of things
</div>
home.php
$.ajax({
type:"GET",
url:"get.php",
data:"fakedata=fakedata"
}).done(function(data){
$(".container").html(data);
});
したがって、クラス コンテナー内の get.php にあるものはすべて表示されます。
ただし、 get.php に何かを追加したい場合
<div>
<div style="position:absolute;top:0;left:-50;">
a box
</div>
displays a list of things
</div>
コンテナの左側にボックスを表示しようとすると、iframe のように切り取られます。z-index を追加しても機能しません。
私が何について話しているか知っている人はいますか?
ありがとう