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
Post a Comment