猿问

在jquery中用鼠标移动事件实现文本显示的效果,这些代码哪里出错了

/**
 * Created by Administrator on 2016/5/26 0026.
 */

$(document).ready(function(){
     var _pop=document.getElementById("#stageicon");
     var _pop1=document.getElementById("#stagewaring-box");
    $(this._pop).bind("click",function(){
        showContent();
    });
    showBor();
});

function showContent(){
    $(".pop1").fadeIn(1000);
}

function showBor(){
    $(".lessonimgbox").bind("mouseover",function(){
        var img1=$(this).find(".img-pop");
        $(this).css({"border":"2px solid #000000"},{"width":"226px"},{"height":"226px"});
        $(this).fadeIn(1000);
    });
}//这些是js 代码


<div class="learn-lessonlist">
                   <span class="stageicon" id="stageicon"></span>
                   <div class="stagewaring-box" id="stagewaring-box">
                       <span class="jiantou-right"></span>
                       <div class="textcontent">
                           <h3>第一阶段:使用安卓版手机用户体验</h3>
                           <p>环境搭建</p>
                       </div>
                   </div>
                   <div class="lessonimgbox">
                       <a href="#">
                           <div class="img-box">
                               <img src="7.jpg">
                           </div>
                           <h3>环境搭建</h3>
                           <div class="imgboxfoot">
                               <span class="minandtime">30min 10课时</span>
                           </div>
                           <div class="img-top">
                               <blockquote>
                                   <p>java面向对象语言思想讲解java面向对象语言思想讲解java面向对象语言思想讲解
                                       java面向对象语言思想讲解java面向对象语言思想讲解java面向对象语言思想讲解</p>
                               </blockquote>
                               <div class="time-user-num">
                                   <span>2016-10-10</span><span>2000人在学习</span>
                               </div>
                           </div>
                       </a>
                   </div>
               </div>//这些是用的html代码

寒熙
浏览 1721回答 2
2回答

柠檬酸钠

首先用了jQuery就不要用getElementById了,还有,你定义的_pop是一个变量,你怎么前面还加一个this,然后呢,你的.pop元素在哪我就没找到。。。
随时随地看视频慕课网APP
我要回答