html - 为什么只读在 IE 8 和 IE 9 中不起作用?

标签 html css

HTML, readonly 在 IE 8 和 IE 9 中不起作用,如果有其他方法可以解决,

这是我的代码,

<input
  size="15"
  type="text"
  name="oldValueMonthlyLimit"
  id="oldValueMonthlyLimit"
  readonly =true
  value="<%=oldValueMonthlyLimit%>">

最佳答案

然后使用禁用。

<input
size="15"
type="text"
name="oldValueMonthlyLimit"
id="oldValueMonthlyLimit"
disabled value="text" >

Link

另见: Example

关于html - 为什么只读在 IE 8 和 IE 9 中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13739355/

相关文章:

python - urllib2.quote 不能正常工作

html - CSS 在我的 RoR 应用程序中无法正常工作

android - 使用导航栏模拟移动设备的 Chrome 开发工具

javascript - "access to script from origin ' null ' has been blocked by CORS policy"尝试使用导入的 js 函数启动 html 页面时出错

html - 在 HTML 中裁剪图像的最佳方法是什么?

html - Twitter Bootstrap : active tabs are still underlined

javascript - 将超大屏幕背景图像溢出到导航栏

html - 如何让 SVG 中的 <image> 改变颜色?

jquery - 使用外部 css 文件时优先/忽略 CSS 规则(kendo ui 和 bootstrap)

html - 将文本框定位在 'login box' 背景图像上