Remove Safari/Chrome textinput/textarea glow

后端 未结 13 928

I am wondering if its possible to remove the default blue and yellow glow when I click on a text input / text area using CSS?

13条回答
  •  孤城傲影
    2020-11-28 18:02

    On textarea resizing in webkit based browsers:

    Setting max-height and max-width on the textarea will not remove the visual resize handle. Try:

    resize: none;
    

    (and yes I agree with "try to avoid doing anything which breaks the user's expectation", but sometimes it does make sense, i.e. in the context of a web application)

    To customize the look and feel of webkit form elements from scratch:

    -webkit-appearance: none;
    

提交回复
热议问题