#btn{ display: block; margin: 200px auto; width: 50px; padding: 5px 20px; background: red; color:#fff; position: relative; } #pop{ background:#CCC; border: 1px solid #000; color:#000; position:absolute; left:0; top:50px; width:200px; height:500px; display:none; }
点击事件 点击显示div 再次点击隐藏div