只读控件,用户不能修改值。
<form> <input type=text" value="只读" readonly /> <!-- 定义了 readonly 属性,文本框的值不能被改变 --> </form>
显示效果