<html>
<head>
<meta charset="UTF-8">
<title>淘宝登录</title>
<link rel="stylesheet" type="text/css" href="../static/css/index.css" />
<script type="text/javascript">
<{if $message !=''}>
alert("<{$message}>")
<{/if}>
</script>
</head>
<body>
<div id="logo">
<div class="logotop">
<div class="yanz">
<h2>登录</h2>
<form action="logo.php" method="post">
<span style="display:blockheight:27pxwidth:27pxbackground-image:url(../static/images/logozh.jpg)float:left"></span>
<input type="text" name="uname" style="height:26px"/><br/>
<span style="display:blockheight:27pxwidth:27pxbackground-image:url(../static/images/logomm.jpg)float:left"></span>
<input type="password" name="pwd" style="height:26px"/>
<p><a href="">忘记登录密码?</a></p>
<input type="submit" value="" style="width:254pxheight:37pxbackground-image:url(../static/images/logodl.jpg)cursor: pointer"/>
</form>
</div>
</div>
</div>
</body>
</html>
这个代码有些图片的地址,需要根据要求去改,这些是我自己写的,然后就是传输的文件,action那,接受的文件也是需要定义的。
<!doctype html><html>
<head>
<meta charset="utf-8">
<link href="main.css" type="text/css" rel="stylesheet">
<title>登陆界面</title>
</head>
<body>
<div class="login_ico">
<img src="images/login_ico.png">
</div>
<div class="login_putin">
<ul>
<li><input type="text" ></li>
<li><input type="password" ></li>
</ul>
</div>
<div class="login_btn">
<input type="submit" value="登陆">
</div>
</body>
</html>
样式 :
*{
margin:0
padding:0}
li{
list-style-type:none
margin:0
padding:0}
a{
text-decoration:none
color:#000}
/*---------------------按钮-----------------------------*/
.login_putin ul li input{
margin: 0
width:70%
padding: 1em 2em 1em 5.4em
-webkit-border-radius:.3em
-moz-border-radius: .3em
border: 1px solid #999
}
.login_btn{
width:300px
margin:40px auto 0 auto
}
.login_btn input{
width:100%
margin:0
padding:.5em 0
-webkit-border-radius:.3em
-moz-border-radius: .3em
border:#1263be solid 1px
background:#1b85fd
color:#FFF
font-size:17px
font-weight:bolder
letter-spacing:1em
}
.login_btn input:hover{
background:#1263be
}
在Userlogin.asp文件中添加下列风格样式代码: /* 文本框的CSS定义:对应CSS中的“INPUT”,这里为文本框的风格设置,可定义内容为背景、字体、颜色、边框等 */ Input { BACKGROUND-COLOR: transparentBORDER-BOTTOM: #ffffff 1px solidBORDER-LEFT: #ffffff 1px solidBORDER-RIGHT: #ffffff 1px solidBORDER-TOP: #ffffff 1px solidCOLOR: #ffffffHEIGHT: 18pxborder-color: #ffffff #ffffff #ffffff #fffffffont-size: 9pt } 这段代码是控制文本框样式,其中“BACKGROUND-COLOR: transparent”,transparent 为CSS样式中控制背景色透明的语句。 以上是输入框 的背景透明化! 如果让改变整个 登录界面的 背景 需要添加如下代码: body { background-image: url(images2/left_bg.gif)} * * * * 0