鼠标悬浮放大
// 功能介绍弹出提示 $('#wxDesc').hover(function(){ openMSG() }, function(){ layer.close(subtips) }) function openMSG(){ var content = document.getElementById('wxDesc').innerText subtips = layer.tips(content, '#wxDesc', {skin: 'layui-layer-rim', tips:[1,'black'],time: 0}) } // 放大微信二维码 $('#wxQrUrl').hover(function(){ openIMG('wxQrUrl') }, function(){ layer.close(imgTips) }) function openIMG(id){ var img = "<img class='img_msg' src='" + document.getElementById(id).src + "' style='width:130px'>"; imgTips = layer.tips(img, '#'+id, { tips:[3, 'rgba(41,41,41,.5)'] ,area: ['160px'] }) }
故乡明