您的位置:首页 > 其它

手动编写一个弹出框

2016-10-20 13:50 169 查看
<html><head>     <link rel="stylesheet" href="query-ui.css">     <script src="jquery-1.9.1.js"></script>     <script src="jquery-ui.js"></script>     <link rel="stylesheet" href="style.css">   <script>     $(function(){    $("#msg").draggable();})   </script></head><body><div id="msg" style="width:300px;height:200px;border:1px solid #eee;float:left;position:fixed; top:45%; left:45%;">     <div style="background:#eee;">          <div  onclick="javascript:document.getElementById('msg').style.display='none';" style="height:20px;float:right;">       X        </div>          <div style="height:25px;width:20px;">        <nobr>提示</nobr>     </div> </div>      <div style="width:100%,height:180px;text-align:center;line-height:180px;">              至少选择一项  !             </div>   </div> </body> </html>    引用的文件路径
code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css
code.jquery.com/jquery-1.9.1.js
code.jquery.com/ui/1.10.4/jquery-ui.js http://jqueryui.com/resources/demos/style.css[/code] 

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  alert