<div id="scs" style="200px;height:200px;border: 1px solid red;display: none"></div>
<input type="button" value="显示" id="scscms" />
<script type="text/javascript">
$(function(){
$("#scscms,#scs").click(function(e){
$("#scs").show();
e.stopPropagation();//阻止冒泡
});
$(document).click(function(e){
$("#scs").hide();
e.stopPropagation();
})
})
</script>