摘要: 1.点击div外部隐藏, //*代表tip_box所包含的子元素 $('body').click(function(e) { var target = $(e.target); if(!target.is('#tip_box *') ) { //事件处理 } }); 2.div动态展开 .tip_box{ width:300px... 阅读全文
posted @ 2017-01-17 16:08 一样菜 阅读(3296) 评论(0) 推荐(0) 编辑