10.1.4 HTML readonly 属性
readonly 属性 -- 表示只读(只能看到,不能修改)的输入域(框)
示例
<form
id
=
"dreamduform"
action
=
"dreamdu.php"
method
=
"post"
>
<label
for
=
"notinput"
>
无法输入的输入框</label>
<input
type
=
"text"
id
=
"notinput"
name
=
"notinput"
readonly
=
"readonly"
/>
</form>