zoukankan      html  css  js  c++  java
  • html-form

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <style>
            textarea{
                /*resize: none;*/
                /*resize: horizontal;*/
                resize: vertical;
            }
        </style>
    </head>
    <body>
        <form action="" method="get" autocomplete="off">
            <!--action 规定当前提交表单向何处发送表单数据-->
            <!--?name=value&name=value&.....-->
            <!--method  默认get   post-->
            <!--autocomplete自动完成,on输入框会提示  off输入框不会提示-->
            账号:<input type="text" name="user" value="888" readonly><br>
            密码:<input type="password" name="pad" placeholder="请输入你的密码" required><br>
            文件上传:
            <input type="file"><br>
            隐藏:
            <input type="hidden"><br>
            单选框:
            <input type="radio" name="gender" disabled><input type="radio" name="gender" id="woman">
            <label for="woman">女</label>
            <input type="radio" name="gender" id="sec">
            <label for="sec">保密</label><br>
            多选框:
            <fieldset>
                <legend>兴趣</legend>
                <input type="checkbox" name="hobby">唱歌
            <input type="checkbox" name="hobby">跳舞
            <input type="checkbox" name="hobby" checked>看书
            <input type="checkbox" name="hobby" disabled>游戏
            <input type="checkbox" name="hobby" id="shopping">
            <label for="shopping">逛街</label><br>
            </fieldset>
            <!--disabled 禁止选-->
            <!--checked 默认选中-->
            你在哪个城市:
            <select name="xz" id="xz" size="2">
                <!--size规定下拉列表中可见选项的数目-->
                <!--selected 规定在select里面默认展示第几项-->
                <option value="1">长沙</option>
                <option value="2">北京</option>
                <option value="3">成都</option>
                <option value="4" selected>上海</option>
            </select><br>
            文本域:
            <textarea name="wb" id="wb" cols="30" rows="10">
    
            </textarea><br>
            <input type="submit" value="提交列表"><br>
            <input type="reset">
        </form>
    </body>
    </html>
  • 相关阅读:
    如何把新加的分区挂载到指定目录下
    怎样通过U盘安装启动Centos6.8
    Redis 单机安装【一】
    Linux漏洞扫描工具【lynis】
    mysql 主从 重新同步
    Centos 6.8下安装oracle10g数据库、
    监控服务supervisor服务的安装及使用
    制作c#桌面应用程序 安装程序 卸载程序
    Microsoft Visual SourceSafe 2005 服务端安装配置过程以及出现的问题,以及解决方法!
    .NET中的CSV导入导出
  • 原文地址:https://www.cnblogs.com/cxhzy/p/10070317.html
Copyright © 2011-2022 走看看