网页制作 
首页 > 网页制作 > 浏览文章

HTML用户注册页面设置源码

(编辑:jimmy 日期: 2024/4/25 浏览:3 次 )

HTML用户注册页面设置源码
 

设计上图中的网页:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>

            form{
                width: 800px;
                height: 700px;
                border: 1px solid red;
                margin: auto;
                background: url(images/tree.jpg) no-repeat -40px 300px;
            }

            form h3{
                margin-left: 200px;
            }

            p{
                margin-left: 200px;
            }

            hr{
                margin-left: 200px;
            }

             .a1{
                 margin-left: 85px;
             }

             .a2{
                margin-left: 110px;
            }


            input,
            textarea
            {
            background: url(images/attention.png) no-repeat right;
            }

            button{
                margin-left: 200px;
                background: rgb(81, 187, 125);
                color: white;
            }

            span#as:hover input{
                width: 300px;
                height: 40px;
            }

           
    </style>

</head>

<body>
        

        <form action="">
            <h3>用户注册:</h3>

            <hr>
            
            <p>用户昵称:<span class="a1" id="as"><input type="text" required placeholder autofocus></span> <hr></p>

            <p>注册邮箱:<span class="a1" id="as"><input type="email" required placeholder="javin@example.com"></span><hr></p>

            <p>密码: <span class="a2" id="as"><input type="password" required placeholder></span><hr></p>

            <p>性别:<span class="a2">男<input type="radio" name="1" checked>
                女 <input type="radio" name="1"> </span><hr>
             </p>

             <p>年龄:<span class="a2" id="as"><input type="number" name="number1" required placeholder></span><hr></p>

             <p>兴趣爱好:<span class="a1">
                足球<input type="checkbox" name="1">
                篮球<input type="checkbox" name="1">
                游泳<input type="checkbox" name="1">
                唱歌<input type="checkbox" name="1">
                跑步<input type="checkbox" name="1">
                瑜伽<input type="checkbox" name="1">
             </span><hr></p>

            <p>自我介绍: <span class="a1"><textarea name="abcde" cols="30" rows="10" required placeholder>Please enter your message</textarea></span><hr> </p>

            <button type=submit>立即注册</button>

             
            <div></div>



        </form>

</body>

</html>
上一篇:当div设置contentEditable=true时,重置其内容后无法光标定位
下一篇:详解HTML元素的height、offsetHeight、clientHeight、scrollTop等梳理
一句话新闻
高通与谷歌联手!首款骁龙PC优化Chrome浏览器发布
高通和谷歌日前宣布,推出首次面向搭载骁龙的Windows PC的优化版Chrome浏览器。
在对骁龙X Elite参考设计的初步测试中,全新的Chrome浏览器在Speedometer 2.1基准测试中实现了显著的性能提升。
预计在2024年年中之前,搭载骁龙X Elite计算平台的PC将面世。该浏览器的提前问世,有助于骁龙PC问世就获得满血表现。
谷歌高级副总裁Hiroshi Lockheimer表示,此次与高通的合作将有助于确保Chrome用户在当前ARM兼容的PC上获得最佳的浏览体验。
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网