62,072
社区成员
发帖
与我相关
我的任务
分享
<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if(!String.IsNullOrEmpty(Request.QueryString["s"]))
Response.Write("分辨率:" + Request.QueryString["s"].Split('_')[0] + " * " + Request.QueryString["s"].Split('_')[1]);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
if (window.location.search.indexOf("s=") == -1) {
window.location.replace("?s=" + window.screen.width + "_" + window.screen.height);
}
</script>
</head>
<body>
<form id="form1" runat="server">
</form>
</body>
</html>