• 表单


    1.文本输入

    文本框<input type="text" name="" id="" value=""/>

    密码框<input type="password" name="" id="" vale=""/>

    文本域<textarea name="'id=" cols=""(字符多少) rows=""(几行高) ></textarea>

    隐藏域<input type="hidden" name="" id="" value=""/>

    2.按钮

    提交按钮<input type="submit" name="" id="" disabled="disabled" value=""/>

    普通按钮<input type="button" name="" id="" disabled="disabled" value=""/>

    图片按钮<input type="image" name="" id="" disabled="disabled" src="图片地址"/>

    (disabled使按钮失效 ;enable,可使用)

    3.选择输入

    单选按钮组<input type="radio" name="" checked="checked" value=""/>(neme的值用来分组,value 值看不见,是提交给程序用的;checked,设置默认选项)

    复选框组<input type="checkbox" name="" checked="checked' value=""/>

    文件上传<input type="file" name="" id=""/>

    4.下拉列表框

    <select name="" id="" size="" multiple="multiple">(xiae为1时是列表,>1时是列表 multiple为多选

    <option value="值"> 内容1</option>

    <option value="值" selected="seleced">内容2</opyion>

    <option value="值"> 内容1</option>

    <body bgcolor="#00CCCC">
    <table width="580" height="600" cellpadding="0" cellspacing="0" border="0">
    <tr height="20">
    <td width="80" >邮箱: </td>
    <td ><form>
    <input type="texe" value="" /><br />
    
    </form></td>
    </tr>
    <tr height="20">
    <td width="80" ></td>
    <td width="500">需要通过邮箱激活账户,不支持souhu,21cn,sougou的邮箱</td>
    </tr>
    <tr height="20">
    <td width="120">登录用户名:</td>
    <td>
    <form><input type="texe" value="" /><br />
    
    </form></td>
    </tr>
    <tr height="30">
    <td width="60" ></td>
    <td>仅在登陆时使用,字符数不少于4个</td>
    </tr>
    <tr height="30">
    <td width="60" >显示名称</td>
    <td><form><input type="texe" value="" /><br />
    
    </form></td>
    </tr>
    <tr height="30">
    <td width="60"></td>
    <td>即昵称,字符数不少于2个</td>
    </tr>
    <tr height="30">
    <td width="60">密码</td>
    <td>
    <form><input type="password" /></form></td>
    </tr>
    <tr height="30">
    <td width="60" >确认密码:</td>
    <td><form><input type="password" /></form></td>
    </tr>
    <tr height="30">
    <td width="60" >确认密码:</td>
    <td><form><input type="password" /></form></td>
    </tr>
    <tr height="30">
    <td width="60" >性别:</td>
    <td><select size="1">
    <option>男</option>
    <option>女</option><br />
     
    
    </tr>
    <tr height="30">
    <td width="60" >喜好:</td>
    <td><select size="1">
    <option>音乐</option>
    <option>运动</option></td>
    </tr>
    <tr height="30">
    <td width="60" ></td>
    <td><input type="submit" value="注册" /></td>
    
     
    
    </tr>
    
    </body>
    </html>
  • 相关阅读:
    按钮的样式
    UIButton的状态
    什么是按钮
    图标下载网站 http://www.easyicon.net/
    开发中常用的颜色
    iOS中播放音效
    imagenamed和imageWithContentOfFile的区别
    资源存放问题
    UIImageView的序列帧动画
    UIImageView的frame设置
  • 原文地址:https://www.cnblogs.com/erinzhismile/p/5303329.html
Copyright © 2020-2023  润新知