表单元素格式
Posted yun---meng
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了表单元素格式相关的知识,希望对你有一定的参考价值。
type 指定元素的类型。{ text、password、checkbox、radio、submit、reset、file、hidden、image 和 button,默认值为 text }
name 指定表单元素的名称
value 元素的初始值。type 为 radio时必须指定一个值
size 指定表单元素的初始宽度。当 type 为 text 或 password时,表单元素的大小以字符为单位;对于其他类型,宽度以像素为单位
maxlength type为text 或 password 时,输入的最大字符数
checked type为radio或checkbox时,指定按钮是否是被选中
!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tJZCI6IjEyNzEtMTU3NjE1MDY4NjIwMCIsImJsb2NrVHlwZSI6InBhcmFncmFwaCIsInN0eWxlcyI6eyJsaW5lLWhlaWdodCI6MS41LCJhbGlnbiI6ImxlZnQiLCJpbmRlbnQiOjAsInRleHQtaW5kZW50IjowLCJiYWNrLWNvbG9yIjoiIiwicGFkZGluZyI6IiJ9LCJ0eXBlIjoicGFyYWdyYXBoIiwicmljaFRleHQiOnsiZGF0YSI6W3siY2hhciI6InQiLCJzdHlsZXMiOnsiYm9sZCI6dHJ1ZX19LHsiY2hhciI6InkiLCJzdHlsZXMiOnsiYm9sZCI6dHJ1ZX19LHsiY2hhciI6InAiLCJzdHlsZXMiOnsiYm9sZCI6dHJ1ZX19LHsiY2hhciI6ImUiLCJzdHlsZXMiOnsiYm9sZCI6dHJ1ZX19LHsiY2hhciI6IiAiLCJzdHlsZXMiOnsiYm9sZCI6dHJ1ZX19LHsiY2hhciI6IiAiLCJzdHlsZXMiOnsiYm9sZCI6dHJ1ZX19LHsiY2hhciI6IiAiLCJzdHlsZXMiOnsiYm9sZCI6dHJ1ZX19LHsiY2hhciI6IiAifSx7ImNoYXIiOiIgIn0seyJjaGFyIjoiICJ9LHsiY2hhciI6IuaMhyJ9LHsiY2hhciI6IuWumiJ9LHsiY2hhciI6IuWFgyJ9LHsiY2hhciI6Iue0oCJ9LHsiY2hhciI6IueahCJ9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vbGQiOnRydWV9fSx7ImNoYXIiOiIgIiwic3R5bGVzIjp7ImJvbGQiOnRydWV9fSx7ImNoYXIiOiIgIiwic3R5bGVzIjp7ImJvbGQiOnRydWV9fSx7ImNoYXIiOiIgIiwic3R5bGVzIjp7ImJvbGQiOnRydWV9fSx7ImNoYXIiOiIgIiwic3R5bGVzIjp7ImJvbGQiOnRydWV9fSx7ImNoYXIiOiIgIiwic3R5bGVzIjp7ImJvbGQiOnRydWV9fSx7ImNoYXIiOiIgIn0seyJjaGFyIjoidCJ9LHsiY2hhciI6InkifSx7ImNoYXIiOiJwIn0seyJjaGFyIjoiZSJ9LHsiY2hhciI6IuS4uiJ9LHsiY2hhciI6InIifSx7ImNoYXIiOiJhIn0seyJjaGFyIjoiZCJ9LHsiY2hhciI6ImkifSx7ImNoYXIiOiJvIn0seyJjaGFyIjoi5oiWIn0seyJjaGFyIjoiYyJ9LHsiY2hhciI6ImgifSx7ImNoYXIiOiJlIn0seyJjaGFyIjoiYyJ9LHsiY2hhciI6ImsifSx7ImNoYXIiOiJiIn0seyJjaGFyIjoibyJ9LHsiY2hhciI6IngifSx7ImNoYXIiOiLml7YifSx7ImNoYXIiOiLvvIwifSx7ImNoYXIiOiLmjIcifSx7ImNoYXIiOiLlrpoifSx7ImNoYXIiOiLmjIkifSx7ImNoYXIiOiLpkq4ifSx7ImNoYXIiOiLmmK8ifSx7ImNoYXIiOiLlkKYifSx7ImNoYXIiOiLmmK8ifSx7ImNoYXIiOiLooqsifSx7ImNoYXIiOiLpgIkifSx7ImNoYXIiOiLkuK0ifV0sImlzUmljaFRleHQiOnRydWUsImtlZXBMaW5lQnJlYWsiOnRydWV9fV0=-->以上是关于表单元素格式的主要内容,如果未能解决你的问题,请参考以下文章