Home > Backend Development > PHP Tutorial > html的window怎么使用?如何让这个窗口默认是关闭的?

html的window怎么使用?如何让这个窗口默认是关闭的?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:17:34
Original
1266 people have browsed it

1.代码如下:

<code>


    <meta charset="UTF-8">
    <title>Basic Window - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
    <link rel="stylesheet" type="text/css" href="../demo.css">
    <script type="text/javascript" src="../../jquery.min.js"></script>
    <script type="text/javascript" src="../../jquery.easyui.min.js"></script>


    <h2>Basic Window</h2>
    <p>Window can be dragged freely on screen.</p>
    <div style="margin:20px 0;">
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#w').window('open')">Open</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#w').window('close')">Close</a>
    </div>
    <div id="w" class="easyui-window" title="Basic Window学习" data-options="iconCls:'icon-save'" style="width:750px;height:500px;padding:10px;">
        就是这个窗口。。。。。。
    </div>


</code>
Copy after login
Copy after login

2.打开这个网页总是默认是打开这个窗口的,不知道怎么解决。求助。

回复内容:

1.代码如下:

<code>


    <meta charset="UTF-8">
    <title>Basic Window - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
    <link rel="stylesheet" type="text/css" href="../demo.css">
    <script type="text/javascript" src="../../jquery.min.js"></script>
    <script type="text/javascript" src="../../jquery.easyui.min.js"></script>


    <h2>Basic Window</h2>
    <p>Window can be dragged freely on screen.</p>
    <div style="margin:20px 0;">
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#w').window('open')">Open</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#w').window('close')">Close</a>
    </div>
    <div id="w" class="easyui-window" title="Basic Window学习" data-options="iconCls:'icon-save'" style="width:750px;height:500px;padding:10px;">
        就是这个窗口。。。。。。
    </div>


</code>
Copy after login
Copy after login

2.打开这个网页总是默认是打开这个窗口的,不知道怎么解决。求助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template