Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
579 views
in Technique[技术] by (71.8m points)

forms - how to override 'webkit autofill CSS-selector' on INPUT TYPE TEXT

Context

These are all input[type=text] fields. check img link below

You want to reuse a previous value from the autofill dropdown.

Problem

Whenever I choose a value from the list, I get an unwanted background-color too.

I've been overriding the selector in my css , but the browser overrules it with !important

input:-internal-autofill-selected{ ..css.. }

Can I get around this without javascript?

IMG Error

question from:https://stackoverflow.com/questions/65936270/how-to-override-webkit-autofill-css-selector-on-input-type-text

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...