在一些浏览器中使用readonly="readonly"时,文本框内虽然不能输入,但会有光标在闪动。 如果不想让光标闪动,加上如下属性即可: unselectable="on",如果还不行再加上οnfοcus="this.blur()" 。