HTML input readonly 属性
带有只读输入字段的 HTML 表单: 实例 Run this code » <form action="demo_form.html"> Country: <input type="text" name="countr...
带有只读输入字段的 HTML 表单: 实例 Run this code » <form action="demo_form.html"> Country: <input type="text" name="countr...
带有 placeholder 文本的两个输入字段: 实例 1 Run this code » <form action="demo-form.php"> <input type="text" name="fname" pl...
只能包含三个字母的输入字段(不允许数字或特殊字符): 实例 Run this code » <form action="demo_form.html"> Country code: <input type="text" n...
带有三个输入字段的 HTML 表单,两个 text 字段和一个 submit 按钮: 实例 Run this code » <form action="demo_form.php"> Name: <input type="...
可接受多个值的文件上传字段: 实例 Run this code » <form action="demo-form.php"> 选择图片: <input type="file" name="img" multiple>...
min 和 max 属性的使用: 实例 Run this code » <form action="demo-form.php"> 输入 1980-01-01 之前的日期: <input type="date" name=...
最大长度为 10 个字符的 <input> 元素: 实例 Run this code » <form action="demo_form.php"> Username: <input type="text" n...
min 和 max 属性的使用: 实例 Run this code » <form action="demo_form.html"> Enter a date before 1980-01-01: <input t...
带有 <datalist> 中的预定义值的 <input> 元素: 实例 Run this code » <input list="browsers"> <datalist id="browsers...
定义图片为提交按钮,带有 height 和 width 属性: 实例 Run this code » <form action="demo_form.html"> First name: <input type="text...