Remove text caret/pointer from focused readonly input

后端 未结 7 1898
醉梦人生
醉梦人生 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

    0 讨论(0)
提交回复
热议问题