IE에서 jQuery 효과에 문제가 있습니다. 그러나 Chrome, Firefox 및 Safari에서 제대로 작동합니다.IE에서 jQuery 팝업 효과가 작동하지 않지만 다른 브라우저에서 작동합니다.
포럼에서 검색했지만 문제를 찾을 수 없습니다.
웹 사이트는 http://www.voces.org.es
IE에서 작동하지 않는 기능입니다 : 팝업에 대한
함수 :
$(document).ready(function() { //When you click on a link with class of poplight and the href starts with a # $('a.poplight[href^=#]').click(function() { var popID = $(this).attr('rel'); //Get Popup Name var popURL = $(this).attr('href'); //Get Popup href to define size //Pull Query & Variables from href URL var query= popURL.split('?'); var dim= query[1].split('&'); var popWidth = dim[0].split('=')[1]; //Gets the first query string value //Fade in the Popup and add close button $('#' + popID).fadeIn().css({ 'width': Number(popWidth) }).prepend('<a href="#" class="close"><img src="http://voces.org.es/wp-content/themes/voces/img/close_pop.png" class="btn_close" title="Close Window" alt="Close" /></a>'); //Define margin for center alignment (vertical horizontal) - we add 80px to the height/width to accomodate for the padding and border width defined in the css var popMargTop = ($('#' + popID).height() + 80)/2; var popMargLeft = ($('#' + popID).width() + 80)/2; //Apply Margin to Popup $('#' + popID).css({ 'margin-top' : -popMargTop, 'margin-left' : -popMargLeft }); //Fade in Background $('body').append('<div id="fade"></div>'); //Add the fade layer to bottom of the body tag. $('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer - .css({'filter' : 'alpha(opacity=80)'}) is used to fix the IE Bug on fading transparencies return false; }); //Close Popups and Fade Layer $('a.close, #fade').live('click', function() { //When clicking on the close or fade layer... $('#fade , .popup_block').fadeOut(function() { $('#fade, a.close').remove(); //fade them both out }); return false; });
});
나는이 첫 번째 웹 프로젝트를 통해 내 길을 걸어 왔지만 실제로이 문제를 해결할 수는 없습니다. 여기 도움을 주시면 감사하겠습니다.
_ "작동하지 않음"_은 전체적으로 부적절한 문제 설명입니다. – Sparky
Jquery가로드되고 있지만 함수가 팝업을 트리거하지 않습니다. 문제를 더 잘 설명하고 싶지만 문제가 무엇인지 알 수는 없습니다 –
처음에는 문제를 재현하기위한 단계 또는 IE 버전을 포함하지 않았습니다. – Sparky