A technology that is not so well known is that we can beautify the style of the selected text in the browser. Windows itself offers a hard-to-see dark green color, while the Apple Computer offers a light greenish colour. Firefox, Ie9,opera and Google Chrome allow us to customize the color of selected text. Let me show you:
CSS Code
Copy the code code as follows:
/* WebKit, Opera, IE9 */
:: Selection {background:lightblue;}
/* Mozilla Firefox */
::-moz-selection {background:lightblue;}
The-moz-attribute prefix is used by Firefox browsers, and the basic:: Selection selector is for Google Chrome. As with other CSS selectors, you can use nesting to display different colors in different places:
Copy the code code as follows:
/* WebKit, Opera, IE9 */
div.highlightblue::selection {background:lightblue;}
/* Mozilla Firefox */
div.highlightblue::-moz-selection {background:lightblue;} </p><p>/* WebKit, Opera, IE9 * *
div.highlightpink::selection {background:pink;}
/* Mozilla Firefox */
div.highlightpink::-moz-selection {background:pink;}
Using CSS to beautify the selected text is a simple technique, but it will make your website more colorful and beautiful!
Source: http://blog.csdn.net/cicada_slough/article/details/43305275
Excellent website always pays attention to every detail the mouse selects the font color