<input type="text" style="width:120pxheight:24pxborder:1px solid #ccccccfloat:leftmargin:4px 0" value="USER ID"/>
<!--type是设置input的类型,text,是单行文本,button是按钮,style,是设置input的属性依次为:宽度,高度,描边(线宽,模式,颜色),浮动(左边),跟周边距离(上下4px,左右0),框里默认字符-->
<input type="button" style="width:60pxheight:50pxmargin:4pxfloat:rightdisplay:inline" value="login" />
<input type="text" style="width:120pxheight:24pxborder:1px solid #ccccccfloat:left" value="PASSWORD" />
</div>
用dreamweaver建一个HTML文本,然后复制这段,到<body></body>里,这么详细,你不能不给我分!!
<style type="text/css">body{ background:#fffpadding:0margin:0font-size:12px}
img{ border:0padding:0margin:0}
ul{list-style:none}
.login_bg{ background:url(<%=path%>financemanage/images/login_new/login_bg.gif) repeat-xheight:591px}
.dl_bg{ background:url(<%=path%>financemanage/images/login_new/dlbg.jpg) no-repeat center top}
.diwen{ background:url(<%=path%>financemanage/images/login_new/diwen.gif) repeat-x}
.usename{ font-size:14pxcolor:#0e3c00}
.dl_text{ width:145pxheight:17pxbackground:url(<%=path%>financemanage/images/login_new/text.gif) repeat-x centerborder:1px solid #1c5302}
.dl_but{ width:75pxheight:50pxbackground:url(<%=path%>financemanage/images/login_new/dlbut.gif) no-repeatborder:0 nonecursor:pointer}
</style>
<script language="javascript" type="text/javascript">
var count = 0
function submit_onclick(obj){
if (count == 0) {
//alert("MAC:" + document.forms[0].MACAddr.value)
obj.submit()
count ++
}
}
function submit2() {
if (count != 0) {
return false
}
if (event.keyCode==13) {
document.forms[0].submit()
}
}
</script>
<!-- script FOR="foo" EVENT="OnObjectReady(objObject,objAsyncContext)" LANGUAGE="JScript">
if(objObject.IPEnabled != null &&objObject.IPEnabled != "undefined" &&objObject.IPEnabled == true)
{
if(objObject.MACAddress != null &&objObject.MACAddress != "undefined")
MACAddr = objObject.MACAddress
if(objObject.IPEnabled &&objObject.IPAddress(0) != null &&objObject.IPAddress(0) != "undefined")
IPAddr = objObject.IPAddress(0)
}
</script>
<object classid="CLSID:76A64158-CB41-11D1-8B02-00600806D9B6" id="locator" VIEWASTEXT></object>
<object classid="CLSID:75718C9A-F029-11d1-A1AC-00C04FB6C223" id="foo"></object>
<script LANGUAGE="JScript">
var service = locator.ConnectServer()
var MACAddr
var IPAddr
service.Security_.ImpersonationLevel=3
service.InstancesOfAsync(foo, 'Win32_NetworkAdapterConfiguration')
</script>
-->
</head>
<body onKeyPress="submit2()">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="login_bg">
<tr>
<td height="135" align="center" valign="top"><img src="<%=request.getContextPath()%>/financemanage/images/login_new/logo.jpg" width="939" height="135" /></td>
</tr>
<tr>
<td height="391" align="center" valign="top" class="dl_bg">
<html:form action="/financemanage/login.do" method="post">
<table width="320" height="70" border="0" cellspacing="0" cellpadding="0" style="margin-top:120pxmargin-left:40px">
<tr>
<td width="100" align="center" class="usename">操作员号:</td>
<td width="184" align="left"><input name="tlrno" type="text" class="dl_text" maxlength="8" tabindex="1"/></td>
<td width="75" rowspan="2"><input name="Submit" type="button" onclick="submit_onclick(this.form)" value="" class="dl_but" tabindex="3"/></td>
</tr>
<tr>
<td align="center" class="usename">密 码:</td>
<td align="left"><input name="pwd" type="password" class="dl_text" maxlength="10" tabindex="2"/>
<%-- input type="hidden" name="MACAddr"/>--%>
</td>
</tr>
<tr>
<td></td>
<td colspan="2"><font size="2"><html:errors/></font></td>
</tr>
</table>
</html:form>
</td>
</tr>
<tr>
<td height="65" class="diwen"> </td>
</tr>
</table>
你可以自己换一下背景颜色或者背景图片 其他的都挺好 这是一个给银行操作员登录的界面 你看看吧