<input type="text" id="input_id"/>
Jquery 方式:
$("#input_id").attr("readonly",true); //设置为只读模式
$("#input_id").attr("style","border:1px;border-bottom-style:none;border-top-style:none;border-left-style:none;border-right-style:none;"); // 去掉边框
其实就是把 style 设置 为: "border:1px;border-bottom-style:none;border-top-style:none;border-left-style:none;border-right-style:none;"