<input type="text" name="a" readonly><br> <!-- 文本域可点击但无法输入 -->
<input type="text" name="b" disabled> <!-- 文本变成灰色不可修改 -->
<input type="text" name="c" οnfοcus="this.blur()"> <!-- 点击文本框没反应 -->
HTML中让input text 不可编辑
最新推荐文章于 2023-10-27 18:55:16 发布
<input type="text" name="a" readonly><br> <!-- 文本域可点击但无法输入 -->
<input type="text" name="b" disabled> <!-- 文本变成灰色不可修改 -->
<input type="text" name="c" οnfοcus="this.blur()"> <!-- 点击文本框没反应 -->