zoukankan      html  css  js  c++  java
  • 表单内容相关操作

    1、表单内容只读:readonly="readonly":输入字段为只读

    2、placeholder="content":提示信息,适用于 input 类型:text、search、url、tel、email 和 password

    3、<fieldset><legned></legned></fieldset>:可以将表单中的多个元素分组显示,<legned></legned>给分组的<fieldset></fieldset>添加标题

      

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8">
            <title>fieldset和legend标签</title>
        </head>
        <body>
            <form action="" method="">
                <fieldset id="">
                    <legend>账户信息</legend>
                    <p>会员名:<input type="text" name="" id="" placeholder="请输入会员名" readonly="readonly"></p>
                    <p>登录密码:<input type="password" name="" id=""></p>
                    <p>验证码:<input type="text" name="" id="" value="xiaozhou" readonly="readonly"/></p>
                </fieldset>
            </form>
        </body>
    </html>
    账户信息

    会员名:

    登录密码:

    验证码:

  • 相关阅读:
    Filter and Listener
    Cookie Session
    怎样快速将一台电脑虚拟机导入另外一台电脑
    网页下载文件服务端代码
    图片验证码生成代码
    Request实战
    Response
    设置页眉页脚的距离
    页眉页脚的设置
    节的设置
  • 原文地址:https://www.cnblogs.com/xiaozhou223/p/11178690.html
Copyright © 2011-2022 走看看