• html 标签


    fieldset:对表单进行分组,一个表单可以有多个fieldset。
    legend:说明每组的内容描述。

    <HTML>
    
       <head>
          <meta charset="utf-8" />
          <title></title>
       </head>
    
       <body>
          <form action="http://www.dreamdu.com/dreamdu.php" method="post" enctype="multipart/form-data" id="dreamduform">
             <fieldset>
                <legend>用户名与密码:</legend>
                <input name="hiddenField" type="hidden" value="hiddenvalue" />
                <label for="username">用户名:</label>
                <input type="text" id="username" value="www.dreamdu.com" />
                <label for="pass">密码:</label>
                <input type="password" id="pass" />
             </fieldset>
             <fieldset>
                <legend>性别:</legend>
                <label for="boy"></label>
                <input type="radio" value="1" id="sex" />
                <label for="girl"></label>
                <input type="radio" value="2" id="sex" />
                <label for="sex">保密</label>
                <input type="radio" value="3" id="sex" />
             </fieldset>
             <fieldset>
                <legend>我最喜爱的:</legend>
                <label for="computer">计算机</label>
                <input type="checkbox" value="1" id="fav" />
                <label for="trval">旅游</label>
                <input type="checkbox" value="2" id="fav" />
                <label for="buy">购物</label>
                <input type="checkbox" value="3" id="fav" />
             </fieldset>
    
          </form>
       </body>
    
    </HTML>

    样式更改

    <fieldset style="300;height:150;border:1px dashed red" align="center">
       <legend style="100px;border:1px dashed #ff9966;background-color:#ff0000;text-align:center;font-family:arial;font-weight:bold">
          1234
       </legend>
    </fieldset>
  • 相关阅读:
    微信小程序 原生框架 (分享方法封装)
    JavaScript 正则表达式学习笔记
    JavaScript Date
    JavaScript String
    JavaScript Array
    前端开发缓存问题的解决方案
    参数验证
    html中的关于距离的总结大全
    Vuex的辅助函数mapState, mapActions, mapMutations用法
    Vue的内置组件transition
  • 原文地址:https://www.cnblogs.com/javascript9527/p/12503041.html
Copyright © 2020-2023  润新知