jqueryでfancybox関数を使用しています。私はloignボックスをクリックしてタグを開き、href属性でログインボックスhtmlを呼び出しています。私はspeartlyログインボックスhtmlを持っています。私は別のリンク名を "register"しています。これは別のfancyboxを呼びます。 。しかし、これは起こっていない。あなたが親に参照する必要がいけない空想ボックス内のデータをロードするためのiframeを使用している場合を除き、ここでjquery fancybox pop customize?
$(".login").fancybox({
'padding': 0,
'margin': 0,
'width': '45',
'height': '480.0',
'autoScale': false,
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe'
});
$(".register").fancybox({
'padding': 0,
'margin': 0,
'width': '45',
'height': '480.0',
'autoScale': false,
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe',
'onClosed' : function() { self.parent.location.reload(); }
});
<a href="login.html" class="login">login</a>
//inside login.html (it is showing on when popup comes)
<a href="register.html" class="register">register</a> // register class not applying of this, it is coming under login class
は、いずれかがこの問題を解決することができます – Carlos