zoukankan      html  css  js  c++  java
  • ●表单元素

    表单元素:
      <form id="" name="" method="post/get" action="负责处理的服务端"> id不可重复;name可重复;get提交有长度限制,并且编码后的内容在地址栏可见,post提交无长度限制,且编码后内容不可见。

      </form>

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

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

      文本域<textarea name="" id="" cols="" rows=""></textarea>

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


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

      重置按钮<input type="reset" value=""/>

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

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


      单选按钮组<input type="redio" name="用来分组" checked="checked" value=""/>

      复选框组<input type="checkbox" name="用来分组" checked="checked" value=""/>

      下拉列表框
      <select name="" id="" size="" multiple="multiple">    --size=1时,为菜单;>1时,为列表。multiple为多选。
        <option value="值">内容1</option>
        <option value="值" selected="selected">内容2</option>    --设为默认
        <option value="值">内容3</option>
      </select>

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

      框架集
      <frameset rows="100,*" frameborder="no">    --rows换成cols,则上下分变为左右分
        <frame src="" noresize="noresize">    --noresizehi禁止调整大小
        <frame src="" scrolling="no">    --scrolling="no",取消显示滚动条
      </frameset>

    在超链接指定目标页面显示在哪个框架窗口中
      第一步:给要显示内容的目标frame设置name属性
      第二步:给超链接的target属性赋值成第一步设置的name

    在原来页面嵌入小窗口显示其他页面
      <iframe src="" width="" height="" frameborder="0" scrolling="no">

  • 相关阅读:
    Solaris 11 system package 安装与更新(如:assembler)
    JS实现页面内跳转
    使用Eclipse进行嵌入式软件开发
    Eclipse下C++标准库报错::mbstate_t has not been declared
    嵌入式ARM开发环境搭建
    CCS内存数据转成图片
    RESET
    Android 圆角研究
    Java 重写必须满足的条件
    android 社会化分享集成
  • 原文地址:https://www.cnblogs.com/phantom-k/p/3976005.html
Copyright © 2011-2022 走看看