制作简单的注册页面

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>注册</title>
<style type="text/css">
.main
{
width: 500px;
}
.tip
{
display: inline-block;
width: 100px;
height: 30px;
text-align: center;
}
.content
{
display: inline-block;
width: 200px;
height: 30px;
line-height: 30px;
text-align: center;
}
.subm
{
display: inline-block;
text-align: center;
width:20px;
}
.btn_sub
{
background: #69b946;
height: 32px;
width: 100px;
text-align: center;
font: 2px;
color:purple;
border: 20px;
}
#button{
color:blue;
margin-left: 100px;
}
input{
font-size: 12px;
color: red;
}
#email{
color: green;
border-color: brown;
}
#name{
color: midnightblue;
border-color: orange;
border-top-color: red;
}
select:hover{
color: green;
}
select:active{
color: red;
}

</style>
</head>
<body style="background-color: aqua; margin-left:520px; margin-top: 70px;">
<form>
<span class="tip">账号:</span><span class="content"><input type="text" name="name" id="name" /></span><br />
<span class="tip">密码:</span><span class="content"><input type="password" name="pwd" /></span><br />
<span class="tip">确认密码:</span><span class="content"><input type="password" name="repwd" /></span><br />
<span class="tip">电子邮箱:</span><span class="content"> <input type="email" name="user_email" id="email"/></span><br />
<span class="tip">性别:</span>
<span class="content">
<input type="radio" name="sex" value="man" />男
<input type="radio" name="sex" value="woman" />女
</span>
<br />

<span class="tip">生日:</span>
<span class="content">
<input type="date" name="" id="" value="">
</span>
<br />
<span class="tip">爱好:</span>
<span class="content">
<input type="checkbox" value="lanqiu">篮球
<input type="checkbox" value="wushu">武术
<input type="checkbox" value="wangqiu">网球
</select>
</span>
<br />
<span class="tip">省份:</span>
<span class="content">
<select name="shengfen">
    <option value="guizhou">贵州</option>
<option value="wuhan">武汉</option>
<option value="yunnan">云南</option>
</select>
</span> <br />
<input type="reset" name="button" id="button" value="重置" />
<span class="subm"><input type="submit" value="立即注册" class="btn_sub">
</span>
</form>
</body>
</html>
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
import java.awt.*; import java.awt.event.*; import java.applet.*; import javax.swing.ImageIcon; import javax.swing.*; import java.lang.*; import java.sql.*; class Imagecanvas extends Canvas { Toolkit tool; Image Im; Imagecanvas() { setSize(360, 50); tool = getToolkit(); Im = tool.getImage("dj.jpg"); } public void paint(Graphics g) { g.drawImage(Im, 0, 0, 360, 50, this); } } class QqBorder1 extends JFrame implements ActionListener { Choice cho; QqBorder1() { super("QQ2010"); setSize(360, 260); setLocation(250, 120); setResizable(false); Container c = getContentPane(); FlowLayout layout = new FlowLayout(FlowLayout.CENTER); JPanel p1 = new JPanel(); JPanel p2 = new JPanel(); JPanel p3 = new JPanel(); cho = new Choice(); cho.add("在线"); cho.add("隐身"); cho.add("离线"); cho.add("忙碌"); cho.add("请勿打扰"); Imagecanvas canvas1 = new Imagecanvas(); p1.setSize(360, 50); p1.add(canvas1); TextField username = new TextField(25); TextField password = new TextField(25); password.setEchoChar('*'); JButton btrystu = new JButton("登陆"); JButton sezhi = new JButton("设置"); JCheckBox check1 = new JCheckBox("记住密码"); JCheckBox check2 = new JCheckBox("自动登陆"); // p1.setSize(360, 200); JPanel p21 = new JPanel(); JPanel p22 = new JPanel(); p21.add(new JLabel("账号:")); p21.add(username); p21.add(new JLabel("<html><font color=blue>注册新账号</font></html>")); // p21.add(new JLabel(" ")); p21.add(new JLabel("密码:")); p21.add(password); p21.add(new JLabel("<html><font color=blue> 找 回 密 码 </font></html>")); p22.add(new JLabel("状态:")); p22.add(new JLabel(" ")); p22.add(cho); p22.add(check1); p22.add(check2); p22.add(new JLabel(" ")); p2.add(p21); p2.add(p22); p2.setBounds(100, 300, 200, 300); p2.setLayout(new GridLayout(2, 1, 10, 10)); p3.add(sezhi); p3.add(new JLabel(" ")); p3.add(btrystu); add(BorderLayout.NORTH, p1); add(BorderLayout.CENTER, p2); add(BorderLayout.SOUTH, p3); this.setVisible(true); } public void actionPerformed(ActionEvent e) { } } public class QqBorder { }

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值