📄 default.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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 runat="server">
<title>居中显示弹出的窗口</title>
<script language="javascript">
function manage(){
var hdc=window.open('Default2.aspx','','width=300,height=200');
width=screen.width;
height=screen.height;
hdc.moveTo((width-300)/2,(height-200)/2);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div style="text-align: center">
<table cellpadding="0" cellspacing="0" style="background-image: url(Images/上传文件页面.jpg);
width: 705px">
<tr>
<td style="background-image: url(Images/1.jpg); width: 100px; height: 154px">
</td>
</tr>
<tr>
<td style="background-image: url(Images/2.jpg); vertical-align: top; width: 755px;
height: 196px; text-align: center">
<table cellpadding="0" cellspacing="0" style="width: 600px">
<tr>
<td align="left" style="width: 600px; height: 25px">
<input id="Button1" style="width: 117px" type="button" value="查看信息" onclick="manage()"/></td>
</tr>
<tr>
<td style="width: 600px; height: 244px">
</td>
</tr>
<tr>
<td align="right" style="width: 600px; height: 21px">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="background-image: url(Images/3.jpg); width: 100px; height: 72px">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -