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:
1 2 3 4 5 6 7 8 9 |
::-moz-selection { background-color: #822e30; color: #fff; } ::selection { background-color: #822e30; color: #fff; } |
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-selectionSo in order to be compatible with all browsers ...... had both written on!
Original article written by LogStudio: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
I tried it and it seemed useless
It depends on the theme you use,If the subject is not standardized,Then it is very likely that the keyword is not this English vocabulary。