Remove text caret/pointer from focused readonly input

后端 未结 7 1949
醉梦人生
醉梦人生 2020-12-13 06:26

I am using an , styled as normal text to remove the appearance of an interactive field, but still display the value.

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-13 06:49

    You can remove the blinking caret by specify the css attribute into transparent

    caret-color: transparent;
    

    you can test the result here

提交回复
热议问题