'Service'; } if (type == 'msb') { pop_text = text_obj.msb; pop_title = 'Msb'; } if (type == 'about') { pop_text = text_obj.about; pop_title = 'About'; } // $('#pop-box').show(); $('.pop-content-desc').html(pop_text) layer.open({ type: 1, area: ['80%', '80vh'], shadeClose: true, title: pop_title, content: $('#pop-box') //这里content是一个DOM,注意:最好该元素要存放在body最外层,否则可能被其它的相对元素所影响 }); } function pop_box_hide() { $('#pop-box').hide(); } $('.pop-content').on('click',function(event){ event.stopPropagation(); console.log('btn2被点击了') }) $('.footer-box-span').hover( function () { $(this).css('color', '#fff'); }, function () { $(this).css('color', '#848E9C'); } )