<%@ page language= "java" import= "java.util.*" pageencoding= "UTF-8"%>
<%
String path = Request.getcontextpath ();
String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";
%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >
<base href= "<%=basePath%>" >
<title> input Box Style </title>
<style type= "Text/css" >
*{
margin:0;
padding:0;
}
body{
font-size:63%;
Color: #000;
}
. input_on{
padding:2px 8px 0pt 3px;
height:18px;
border:1px solid #999;
Background-color: #FFFFCC;
}
. input_off{
padding:2px 8px 0pt 3px;
height:18px;
border:1px solid #CCC;
Background-color: #FFF;
}
. input_move{
padding:2px 8px 0pt 3px;
height:18px;
border:1px solid #999;
Background-color: #FFFFCC;
}
. input_out{
padding:2px 8px 0pt 3px;
height:18px;
border:1px solid #CCC;
Background-color: #FFF;
}
ul.input_test{
margin:20px Auto 0 auto;
width:500px;
List-style-type:none;
}
Ul.input_test li{
width:500px;
height:22px;
margin-bottom:10px;
}
. input_test label{
Float:left;
padding-right:10px;
width:100px;
line-height:22px;
Text-align:right;
Font-size:1.4em;
}
. input_test p{
Float:left;
_margin-top:-1px;
}
. input_test span{
Float:left;
padding-left:10px;
line-height:22px;
Text-align:left;
Font-size:1.2em;
Color: #999;
}
</style>
<body>
<ul class= "Input_test" >
<li>
<label for= "Inp_name" > Name:</label>
<p><input id= "Inp_name" class= "Input_out" name= "" type= "text" onfocus= "This.classname= ' input_on '; This.onmouseout= ' "onblur=" this.classname= ' Input_off '; This.onmouseout=function () {this.classname= ' input_out '}; " Onmousemove= "This.classname= ' input_move '" onmouseout= "this.classname= ' input_out '"/></p>
<span> Please enter your name </span>
</li>
<li>
<label for= "Inp_email" >Email:</label>
<p><input id= "Inp_email" class= "Input_out" name= "" type= "text" onfocus= "This.classname= ' input_on '; This.onmouseout= ' "onblur=" this.classname= ' Input_off '; This.onmouseout=function () {this.classname= ' input_out '}; " Onmousemove= "This.classname= ' input_move '" onmouseout= "this.classname= ' input_out '"/></p>
<span> Please enter your email</span>
</li>
<li>
<label for= "Inp_web" > website:</label>
<p><input id= "Inp_web" class= "Input_out" name= "" type= "text" onfocus= "This.classname= ' input_on '; This.onmouseout= ' "onblur=" this.classname= ' Input_off '; This.onmouseout=function () {this.classname= ' input_out '}; " Onmousemove= "This.classname= ' input_move '" onmouseout= "this.classname= ' input_out '"/></p>
<span> Please enter your website </span>
</li>
</ul>
</body>
Standard page input box style (overall)