js代码
<script src="js/jquery-2.1.1.min.js" type="text/javascript"></script> <script> $(document).ready(function () { var $box = $('.box'); $('.metro li').each(function () { var color = $(this).css('backgroundColor'); var content = $(this).html(); $(this).click(function () { $box.css('backgroundColor', color); $box.addClass('open'); $box.find('p').html(content); }); $('.close').click(function () { $box.removeClass('open'); $box.css('backgroundColor', 'transparent'); }); }); }); </script>
售后客服微信:guomanqing1314
微信扫码加好友:
关注公众号:不定期分享免费源码、自媒体工具、壁纸等
其他咨询和服务:
邮箱:1206995177@qq.com
手机:18005151538