


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:
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>

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)