こんにちは皆さん、私は立ち往生しているjQueryの問題を抱えています。時々それは機能していて、私には正しい高さを与え、他の人にはまったく異なる高さを与えます. 読み込み中の順序に関係があるのかもしれませんし、何か間違ったことをしただけかもしれません。よろしければご覧いただき、間違いがありましたらお知らせいただけますでしょうか。私はそれをお願い申し上げます。それはWordpressサイトにあり、ヘッダーにあります....
<script type="text/javascript">
jQuery(document).ready(function( $ ) {
// boxen gleiche hoehe
if($(window).width() >= 1600) {
$(".home #fb").height($("#homebox").innerHeight(true) + $("#homebox2").innerHeight(true) - 45) +'px';
}
$(".home #twitter, .page-template-homeLayout-php #twitter").height($("#homebox").innerHeight(true) + $("#homebox2").innerHeight(true));
});
$(window).resize(function() {
if($(window).width() >= 1600) {
$(".page-id-1235 #fb").height($("#homebox").innerHeight(true) + $("#homebox2").innerHeight(true) - 45) +'px';
}
$(".home #twitter, .page-template-homeLayout-php #twitter").height($("#homebox").innerHeight(true) + $("#homebox2").innerHeight(true));
});
});
</script>