search

Home  >  Q&A  >  body text

Personalized customization method for typewriter input

<p>I want to hide the typewriter cursor (this blinking | mark) in the input box, is there a way to do it using CSS? </p> <pre class="brush:php;toolbar:false;">input { Some CSS properties to hide the typewriter cursor }</pre>
P粉032977207P粉032977207471 days ago549

reply all(1)I'll reply

  • P粉066224086

    P粉0662240862023-08-10 11:40:11

    You can achieve this by using. Just be sure to adjust the input field's other style properties as needed to ensure it looks the way you expect without a visible cursor.

    input {
       caret-color: transparent; /* 隐藏闪烁的光标 */
         }

    reply
    0
  • Cancelreply