10.2.6 HTML readonly 属性

readonly 属性 -- 表示只读(只能看到,不能修改)的输入域(框)
  • 引用网址:http://www.dreamdu.com/xhtml/attribute_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代码