Standard page input box style (overall)

Source: Internet
Author: User

<%@ 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.