频道栏目
首页 > 资讯 > HTML/CSS > 正文

html中用fieldset实现用户登录界面

18-07-23        来源:[db:作者]  
收藏   我要投稿

fieldset做用户登录界面

输入:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <fieldset>
        <legend>登录</legend>
        <label for="username">用户名:</label>
        <input id="username" type="text" name="user" />
        <br />
        <label for="pwd">密码:</label>
        <input id="pwd" type="text" name="user" />
    </fieldset>
</body>
</html>

输出:

类装饰控件

输入:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /*
        #i1{
            background-color: #2459a2;
            height: 48px;
        }
        #i2{
            background-color: #2459a2;
            height: 48px;
        }
        #i3{
            background-color: #2459a2;
            height: 48px;
        }
        .c1{
            background-color: #2459a2;
            height: 10px;
        }
        */
        /*#c2{
            background-color: black;
            color: white;
        }
        .c1 div{
            background-color: black;
            color: white;
        }*/
        .i1,.i2,.i3{
             background-color: black;
            color: white;
        }
        .c1[n='alex']{ width:100px; height:200px; }
    </style>
</head>
<body>
    <div class="i1">ff</div>
    <div class="i2">ff</div>
    <div class="i3">2</div>
    <input class="c1" type="text" n="hcl">
    <input class="c1" type="password">
</body>
</html>

输出:

相关TAG标签
上一篇:介绍下mongoDB创建数据库文件的存放位置
下一篇:oracle数据库的安装步骤教程
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站