代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>在表单中增加文字字段</title>
<title>登录页面</title>
<style type="text/css">
.bordered {
border-style:solid;
width:1500px;
height:1700px;
}
#bg{
width:1500px;
height:700px;
background: url(95.jpg);
}
</style>
</head>
<body>
<body align="center">
<body style="color:black"/>
<br/><br/><br/><br/>
<div id="bg">
<div class="bordered" >
<fieldset>
<legend><h1 align="center" class="blue" >登录页面</h1></legend>
<br/> <br/>
<form id="myform" name="myform" action="#" method="post">
<p style="font-family:verdana;color:blue" ><strong > 用户名</strong> <input type="text" id="yonghuming"/></p>
<br/>
<p style="font-family:verdana;color:blue"><STRONG>密 码</STRONG> <input type="password" id="mima"/></p>
<p><input type="button" value="登录" style="width:70px;height:30px" />
<input type="button" value="注册" style="width:55px;height:30px" onclick="window.open('注册页面.HTML')"/>
</P>
</form>
</fieldset>
</div>
</div>
</body>
</html>
ps:第一次做,很多地方不懂,反反复复的查资料,翻书,才勉强完成,因为只学了 HTML5 还是有许多地方不熟悉。。。。。加油~(还有许多东西要学呢!)