input 去掉表框

时间:2014-01-14 21:33:50   收藏:0   阅读:559

<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;"

原文:http://www.cnblogs.com/yunp07/p/3513434.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!