1、html网页输入文字 点击按钮弹出一个窗口
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>My Test Document</title>
<style>
.box{
width:50%; margin-top:10%; margin:auto; padding:28px;
height:350px; border:1px #111 solid;
display:none; /* 默认对话框隐藏 */
}
.box.show{display:block;}
.box .x{ font-size:18px; text-align:right; display:block;}
.box input{width:80%; font-size:18px; margin-top:18px;}
</style>
</head>
<body>
<h2>测试</h2>
<input type="button" onClick="msgbox(1)" value="点击弹出输入框">
<script>
function msgbox(n){
document.getElementById('inputbox').style.display=n?'block':'none'; /* 点击按钮打开/关闭 对话框 */
}
</script>
<div id='inputbox' class="box">
<a class='x' href=''; onclick="msgbox(0); return false;">关闭</a>
<input type="text">
<input type="text">
<input type="button" value="确定">
</div>
</body>
希望我的回答可以帮到您哦
2、如何在html网页上点击按钮弹出登陆窗口(登陆窗口里面的代码如何与数据库相连,窗口是浮动的)要代码
1、确认无误后,打开python编辑器pycharm,然后新建一个文件,叫做tkinter_t.py。

2、内容编辑完毕,确认无误后,点击pycharm编辑器最上方的run选项卡。然后再点击下方的run选项。

3、然后会弹出一个窗口,让你选择需要运行的python文件,选择刚才创建的tkinter_t.py,然后就会开始执行。弹出我们的测试窗口。

4、继续在基础上进行优化。优化后的命令总共分两段。

5、首先用Tk()这个模块创建一个窗口windows,然后定义一个按钮button,按钮的名称是press,按下去以后的响应命令command是刚才定义的reply函数。

6、代码确认无误后,点击pycharm页面右上角的tkinter_t.py文件名旁边的绿色三角按钮,开始运行代码。

7、刚创建的窗口是个很小的窗口,只显示了一个按钮的高度。

3、html点击按钮弹出窗口如何实现?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
* {
padding: 0;
margin: 0;
}
.firstBox h5 {
font-size: 30px;
color: #000;
font-weight: 700;
}
.firstBox table {
border: 1px solid #E6E6E6;
margin: 15px 0px;
}
.firstBox table thead {
background: #E6E6E6;
}
.firstBox table tr td {
width: 150px;
text-align: center;
}
.firstBox button {
width: 100px;
height: 40px;
background: #E6E6E6;
border: 1px solid #C7D3E6;
text-align: center;
line-height: 40px;
font-size: 16px;
color: #000;
cursor: pointer;
}
#twoBox {
margin: 20px 0px 0px;
background: #E6E6E6;
height: 250px;
width: 310px;
position: relative;
display: none;
}
#twoBox .twoBox_lever {
width: 290px;
height: 230px;
background: #fff;
border: 1px solid #ccc;
border-radius: 5px;
position: absolute;
right: 0;
top: 0;
left: 0;
bottom: 0;
margin: auto;
}
.twoBox_lever_two {
width: calc(100% - 10px);
height: calc(100% - 10px);
padding: 5px;
}
.twoBox_lever_two .two_title {
width: 100%;
height: 40px;
background: #E6E6E6;
border: 1px solid #ccc;
border-radius: 5px;
}
.twoBox_lever_two .two_title p {
font-size: 16px;
color: #000;
line-height: 40px;
padding-left: 10px;
font-weight: 700;
}
.twoBox_lever_two form {
width: calc(100% - 20px);
margin: 10px;
border-bottom: 1px solid #ccc;
height: calc(100% - 100px);
}
.twoBox_lever_two form input {
height: 20px;
line-height: 20px;
padding: 0px 10px;
margin: 5px;
cursor: pointer;
}
.twoBox_lever_two .two_footer {
height: 40px;
text-align: right;
padding-right: 10px;
}
.twoBox_lever_two .two_footer button {
height: 30px;
background: #E6E6E6;
border: 1px solid #C7D3E6;
text-align: center;
line-height: 30px;
font-size: 16px;
color: #000;
cursor: pointer;
}
.twoBox_lever_two .two_footer button:first-of-type {
width: 120px;
padding: 0px 10px;
}
.twoBox_lever_two .two_footer button:last-of-type {
width: 50px;
}
.show {
display: block !important;
}
</style>
</head>
<body>
<div style="margin:10px;">
<!-- 第一部分 -->
<div class="firstBox">
<h5>已有的用户 :</h5>
<table>
<thead>
<tr>
<th>名字</th>
<th>邮箱</th>
<th>密码</th>
</tr>
</thead>
<tbody>
<tr>
<td>姓名</td>
<td>[email protected]</td>
<td>xingtuan</td>
</tr>
</tbody>
</table>
<button id="button">创建新用户</button>
</div>
<!-- 第二部分 -->
<div id="twoBox">
<div class="twoBox_lever">
<div class="twoBox_lever_two">
<div class="two_title">
<p>创建新用户</p>
</div>
<form>
<label style="float:left">名字:
<input type="text" placeholder="请输入名字">
</label>
<label style="float:left">邮箱:
<input type="text" placeholder="请输入邮箱">
</label>
<label style="float:left">密码:
<input type="password" placeholder="请输入密码">
</label>
</form>
<div class="two_footer">
<button>创建一个用户</button>
<button>取消</button>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
window.onload = function () {
document.getElementById("button").onclick = function () {
document.getElementById("twoBox").classList.add("show")
}
}
</script>
</html>
4、设计网页点击添加按钮如何弹出对话框
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
<!--
td { font-size: 9pt}
a { color: #000000; text-decoration: none}
a:hover { text-decoration: underline}
.tx { font-size: 9pt; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: 20px; width: 40px; background-color: #eeeeee; cursor: hand}
.bt { font-size: 9pt; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: 16px; width: 60px; background-color: #eeeeee; cursor: hand}
.tx1 { height: 20px; width: 30px; font-size: 9pt; border: 1px solid; border-color: black black #000000; color: #0000FF}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>添加公告</title>
<style type="text/css">
<!--
.STYLE1 {font-size: 18px}
body {
background-color: #2286c2;
}
-->
</style>
</head>
<body>
<p class="STYLE1">公告标题:</p>
<form id="form1" name="form1" method="post" action="">
<label>
<input name="textfield" type="text" size="50" />
</label>
</form>
<p class="STYLE1">公告内容:</p>
<form id="form2" name="form2" method="post" action="">
<label>
<textarea name="textarea" cols="50" rows="20"></textarea>
</label>
<p>
<p><iframe frameborder="1" width="300" height="50" scrolling="no" src="upload.asp"></iframe></p>
</p>
</form>
<form id="form3" name="form3" method="post" action="">
<label>
<input type="submit" name="Submit" value="提交" />
</label>
<input type="submit" name="Submit2" value="重置" />
</form>
<p> </p>
</body>
</html>
5、关于网页制作:怎样在网页中点击按钮,然后弹出新窗口?
的window.open('page.html的','newwindow','高度= 100,宽= 400,= 0,左= 0时,工具栏=没有,菜单=没有,滚动条=没有,可调整大小=没有,位置=没有状态=没有)
6、网页点击按钮弹出信息框?
弹出信息框.并且打开一个网页地址. 按钮部分:属性里加上onclick="fun()" head区域添加代码: function fun(){ window.open("要弹出的网址","_blank","width=200,height=300") } </script> 参数可自行修改
7、怎么在页面中设置,点击按钮弹出一个带有输入框的对话框
听好,我用VC++作例子。
1.在资源视图中(也就是那个resource)找到dialog,右键(看见那个insert点击它)新建dialog,命名随便你自己取,比如DLG,这个dialog就是你要点击后出来的对话框,楼主自己对这个对话框进行设计。
2.找到你要点击的按钮,双击,在显示的函数中添加一下代码:
DLG dlg;
dlg.DoModal();
3.在当前的文件中的最前面添加#include"DLG.h"
4.运行程序。
8、点击按钮在本页面弹出窗口
http://sandbox.runjs.cn/show/au8izuk5 这个你可以借鉴一下,代码你可以在浏览器上右键,查看源代码;然后修改修改里面的html应该就可以了
9、急用:网页设计:如何用JS实现:单击按钮就新打开一个的窗口,并设计该窗口的的长度和宽度
<SCRIPT LANGUAGE="javascript">
<!--
window.open ('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no') //这句要写成一行
-->
</SCRIPT>
参数解释:
<SCRIPT LANGUAGE="javascript"> js脚本开始;
window.open 弹出新窗口的命令;
'page.html' 弹出窗口的文件名;
'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替;
height=100 窗口高度;
width=400 窗口宽度;
top=0 窗口距离屏幕上方的象素值;
left=0 窗口距离屏幕左侧的象素值;
toolbar=no 是否显示工具栏,yes为显示;
menubar,scrollbars 表示菜单栏和滚动栏。
resizable=no 是否允许改变窗口大小,yes为允许;
location=no 是否显示地址栏,yes为允许;
status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许;
</SCRIPT> js脚本结束
10、网页点击按钮弹出提示窗口
是这样的 在javascript里面写上一个函数 它的格式是:
function "由你自己命名的函数名" (){
if(confirm())
{
close();
}
}
然后在调用这一个函数
调用的方法 : onClick("由你自己命名的函数名()")