javascript - Change default selected text color on webpage content -


When we select any content, it will display blue in the webpage for selection. How can this default color change on the webpage with other custom colors?

You can try the code below:

< Pre> :: selection {background: # ffb7b7; / * WebKit / Blink Browsers * / - :: -Move-selection {Background: #FFB7B7; / * Geo Browsers * /}

Comments

Popular posts from this blog

javascript - Render HTML after each iteration in loop -

java - Joda Time Interval Not returning what I expect -

python - Pandas concat gives error ValueError: Plan shapes are not aligned -