求一个JSP界面的CSS登陆样式

html-css024

求一个JSP界面的CSS登陆样式,第1张

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

你可以自己换一下背景颜色或者背景图片 其他的都挺好 这是一个给银行操作员登录的界面 你看看吧

你这个登录界面,如果用table做的话很简单,只需要4行3列,然后就是左右对齐设置下

如果用css+div也很简单,从上到下4个div,然后在一行的div里面在套div或者直接用ul li来写