jquery弹层

<script>  
  
$(fuction(){  
  
$("#btn").click(function () {  
                $("#show").dialog({  
                    modal: true,  
                    autoOpen: false,  
                    width: 250,  
                    maxHeight: 600,  
                    position: ["center", 100]  
                });  
            });  
  
})  
  
</script>  

<div id="show" title="" style="position:center">  
        弹层内容  
    </div>  
  
<input type="button" id="btn" value="弹层"/>  
点击“弹层”按钮将会弹出id为show的div里面的内容。

猜你喜欢

转载自blog.csdn.net/zhouxueli32/article/details/79723355
今日推荐