实现不让光标出现的效果,很好用,例子如下: <input class="red" readonly unselectable="on" value="红色"><style>input.red{color:#f00;} </style> readonly 属性规定输入字段为只读。 转载于:https://www.cnblogs.com/xiaolinxi/p/5015261.html