


Urgent: How to realize adaptive resolution of background images and adjustment of IE window_html/css_WEB-ITnose
Dear experts, please give me some advice. I have a jsp login page here. In addition to the input boxes and buttons on the page, there is a background image. The positions of the input boxes are all relative positions. However, after IE or resolution adjustment, the input box and background image will still be misaligned. I would like to ask everyone, how can I make the background image change with the changes of IE and resolution? ?
Please give me some advice from all the experts! ! ! ! The page code is as follows:
login.jsp:
<%@ page contentType="text/html;charset=gb2312" language="java" import="java.util.*,com.iproject.examsys. web.to.*" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
if(request.getSession (true).getAttribute(UserSessionInfo.USER_SESSION)!=null){
response.sendRedirect("examination/index");
}
response.setHeader("Pragma", "No-cache") ;
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
String path = request.getContextPath();
String basePath = request.getScheme() "://" request.getServerName() ":" request.getServerPort() path "/";
%>
< ;body class="loginBgGround">
<script> <br> function processKey(event){ <br> if(event.keyCode==13){ <br> login(); <br> } <br> } <br> <br> function login(){ <br> var saveFlag = true; <br> <br> var regArray = new Array(); <br> var errorMsgArray = new Array(); <br> regArray.push(emptyReg);//empty <br> errorMsgArray.push("用户名不能为空 "); <br> regArray.push(/^[\w*\W*]{1,16}$/);//length <br> errorMsgArray.push("最大长度为16"); <br> regArray.push(/^\w{1,16}$/);//character <br> errorMsgArray.push("只能输入字符 0-9 a-z A-Z _"); <br> var temp = checkText("userName",regArray,errorMsgArray); <br> if(saveFlag==true) saveFlag = temp; <br> <br> <br> regArray = new Array(); <br> errorMsgArray = new Array(); <br> regArray.push(emptyReg);//empty <br> errorMsgArray.push("密码不能为空"); <br> regArray.push(/^[\w*\W*]{1,16}$/);//length <br> errorMsgArray.push("最大长度为16"); <br> regArray.push(/^\w{1,16}$/);//character <br> errorMsgArray.push("只能输入字符 0-9 a-z A-Z _"); <br> temp = checkText("password",regArray,errorMsgArray); <br> if(saveFlag==true) saveFlag = temp; <br> <br> if(saveFlag){ <br> document.forms[0].submit(); <br> } <br> } <br> </script>