다음 코드가 IE에서 작동하지 않는 이유를 알고 있습니까? IE에서 근무하는 단어 디스플레이 효과에 의해 단어를 가지고단어 단위로 표시되는 단어 애니메이션이 IE에서 작동하지 않음
div.hide().contents().each(function() {
var words;
if (this.nodeType === 3) {
words = '<span> ' + this.data.split(/\s+/).join(' </span><span> ') + ' </span>';
$(this).replaceWith(words);
} else if (this.nodeType === 1) {
this.innerHTML = '<span> ' + this.innerHTML.split(/\s+/).join(' </span><span> ') + ' </span>';
}
});
// Remove any empty spans that were added
div.find('span').hide().each(function() {
if(!$.trim(this.innerHTML)) {
$(this).remove();
}
});
div.show().find('span').each(function(i) {
$(this).css('filter', 'alpha(opacity=40)');
$(this).delay(400 * i).fadeIn(600);
});
모든 해결 방법을 (다른 브라우저에서 좋은 작업)?
편집 : 바이올린 여기 만든
는 : http://jsfiddle.net/8dh3F/
콘솔에 어떤 오류가 있습니까? 정확히 작동하지 않는 것은 무엇입니까? –
오류 메시지가 표시되지 않습니다. 문제는 텍스트가 전혀 표시되지 않는다는 것입니다. –
fadeTo (600)을 fadeTo (1,600)로 바꾸면 도움이 될 수도 있습니다. – Sem