zoukankan      html  css  js  c++  java
  • 9.8

    9.8知识小纲


    今天的课堂知识(表单的大概内容)总结如下:

    1、<from></from>代表表单

      代表表单又包括①负责处理的服务端,提交给哪个页面:action

                         ②数据提交的方式:method :⒈get:显示提交,编码后的内容在地址栏可见,提交有长度限制。

                                                                 ⒉post:隐式提交,编码后的内容不可见,无提交长度限制。

    2、文本输入

      ①文本框:<input type="text" name="" id="" value="" />         readonly 为只读标签  disabled 为不可用标签,同时不能提交。

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

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

      ④文本域:<textarea name="" id="" cols=""(字符数量)rows=""(几行高)></textarea> 双标签。

    3、按钮

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

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

      ③重置按钮:<input type="reset" name="" id="" value="" />

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

    4、选择输入表单

      ①单选按钮组<input type="redio" name="" checked="checked" value="" /> name值用来分组,相同值为一组,单选。 

      ②复选框组<input type="checkbox" name="" value="" />   redio 和 checkbox 中 checked,作默认选项,可修改。

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

      ④下拉列表<select name="" id="" size="" multipe="multipe">   size=1时,为菜单、>1时,为列表。 multiple是多选的意思。

                    <option value="值">内容</option>    option也是双标签 

                    <option value="值" selected="selected">内容</option>    selected,用于下拉列表  设选中项。

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

     

    基础知识,编码含义一定要记牢。     加油。

  • 相关阅读:
    页面上输入任意数字,点击按钮后计算阶乘。
    利用递归求两个数字的最大公约数。
    17css动画
    10Vue组件参数校验和非Props特性
    git rebase --continue出现“If there is nothing left to stage,chances are that something else already introduced the same changes; you might want to skip this patch.”
    9Vue父子组件的传递方式
    8Vue组件使用细节
    Block-scoped declarations问题解决
    7Vue中的set方法
    6Vue条件渲染
  • 原文地址:https://www.cnblogs.com/u1020641/p/5854566.html
Copyright © 2011-2022 走看看