jQuery버전 차이 질문 채택완료
시로유이
11년 전
조회 9,393
<div class="code-block-wrapper">
<button onclick="copyCodePrism(this)" class="copy-code-btn" style="position: absolute; top: 10px; right: 10px; z-index: 10; background: rgba(0,0,0,0.5); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 6px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(10px);" onmouseover="this.style.background='rgba(0,0,0,0.7)'; this.style.transform='translateY(-1px)'" onmouseout="this.style.background='rgba(0,0,0,0.5)'; this.style.transform='translateY(0)'">
<svg style="width: 14px; height: 14px; display: inline-block; vertical-align: middle; margin-right: 4px;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"></path>
</svg>
<span class="copy-text">Copy</span>
</button>
<pre class="language-css"><code class="language-css"><div><div>jQuery(document).ready(function($){</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>$(li).mouseover(function(){</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>$(this).slideDown(500);</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>}).mouseleave(function(){</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>$(this).slideUp(500);</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>});</div>
<div>});</div></div>
<div></code></pre>
</div></div><br />
<div>요놈이 문제 입니다..&nbsp;jQuery1.4.x 이하는 잘 작동하는데 jQuery1.5.x 이상은 이상하네요..&nbsp;<span style="font-size: 10pt; line-height: 1.5">mouseleave가 안먹히네요..</span></div><br />
<div>해결 방법이 궁금합니다.. 1.11.x 만 쓰고싶은데 얘때메... 1.10.x 랑 1.4.x랑.. 같이 쓰는중...<span style="font-size: 10pt; line-height: 1.5"></span></div>
<button onclick="copyCodePrism(this)" class="copy-code-btn" style="position: absolute; top: 10px; right: 10px; z-index: 10; background: rgba(0,0,0,0.5); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 6px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(10px);" onmouseover="this.style.background='rgba(0,0,0,0.7)'; this.style.transform='translateY(-1px)'" onmouseout="this.style.background='rgba(0,0,0,0.5)'; this.style.transform='translateY(0)'">
<svg style="width: 14px; height: 14px; display: inline-block; vertical-align: middle; margin-right: 4px;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"></path>
</svg>
<span class="copy-text">Copy</span>
</button>
<pre class="language-css"><code class="language-css"><div><div>jQuery(document).ready(function($){</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>$(li).mouseover(function(){</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>$(this).slideDown(500);</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>}).mouseleave(function(){</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>$(this).slideUp(500);</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>});</div>
<div>});</div></div>
<div></code></pre>
</div></div><br />
<div>요놈이 문제 입니다..&nbsp;jQuery1.4.x 이하는 잘 작동하는데 jQuery1.5.x 이상은 이상하네요..&nbsp;<span style="font-size: 10pt; line-height: 1.5">mouseleave가 안먹히네요..</span></div><br />
<div>해결 방법이 궁금합니다.. 1.11.x 만 쓰고싶은데 얘때메... 1.10.x 랑 1.4.x랑.. 같이 쓰는중...<span style="font-size: 10pt; line-height: 1.5"></span></div>
댓글을 작성하려면 로그인이 필요합니다.
답변 2개
채택된 답변
+20 포인트
11년 전
$(li).mouseover(function(){
로 작성하신게 맞으신가요?
$("li").mouseover(function(){
로 하시면 될 듯 하십니다 :-)
로그인 후 평가할 수 있습니다
답변에 대한 댓글 2개
�
시로유이
11년 전
변수 빼다보니.. ""를 빼먹엇네요... 실제 소스에는 들어가 잇습니다
�
시로유이
11년 전
3일만에 스스로 해결했습니다.. css문제였어요..ㅎㅎ 어쨋든 답변 해주셧으니 채택 >ㅅ< !!
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인