yunp07

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

分类:

技术点:

相关文章:

  • 2021-10-30
  • 2021-11-04
  • 2022-12-23
  • 2021-12-10
  • 2021-05-05
  • 2021-12-14
  • 2021-12-14
猜你喜欢
  • 2021-12-10
  • 2021-11-29
  • 2021-05-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-02-07
相关资源
相似解决方案