您的位置:寻梦网首页编程乐园HTML园地HTML实用教程
HTML实用教程
作者:佚名 来源:梦之都(www.dreamdu.com)

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>

HTML readonly 属性示例 -- 可以尝试编辑

HTML视频教程