jquery/js 点击空白区域隐藏某一个层/元素

场景:点击一个按钮弹出一个对话框/气泡,点击空白区域隐藏对话框/气泡;javascript html:css <button id="btn">按钮</button> <div class="tips"></div> css:html .tips{ width: 100px; height: 100px; background: red; display: none; } js:java //方法
相关文章
相关标签/搜索