WordPress set selected text color and background color

In the optimization blog to help a friend when encountered such a problem,Custom blog was selected text color color。

This requirement can be achieved by modifying the style.css,Concrete is added to the following fields in the corresponding file style.css:

background-color behind the color of the selected text color color。
Color color behind the selected parameter is displayed as text。
::selection for Chrome, Safari, Browser IE9 +, etc.,The use firefox::-moz-selection
So in order to be compatible with all browsers ...... had both written on!

Original article written by Gerber drop-off:R0uter's Blog » WordPress set selected text color and background color

Reproduced Please keep the source and description link:https://www.logcg.com/archives/343.html

About the Author

R0uter

The non-declaration,I have written articles are original,Reproduced, please indicate the link on this page and my name。

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *