when I use any site, I see that the highlighted background color of the text is displayed in blue or matches our OS theme. Can I change the selected background color of the text?
You can use this style. this will work on all major browsers except IE
<style> ::-moz-selection { background:#0C0; color:#f00; } ::selection { background:#6374AB; color:#F00; } </style>
In Firefox, you can apply CSS styles to ::-moz-selection.In Safari, you can apply CSS styles to ::selection.
::-moz-selection
::selection
See here .
Source: https://habr.com/ru/post/1748858/More articles:Печать нескольких изображений - c#Objective-C: Initializing char with char at row index - objective-cHow can I round to a specific floating point precision? - floating-pointhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1748856/javascript-how-can-i-append-variables-to-the-url&usg=ALkJrhjhFQ-TZzMbkgZbUHUzvCUMMiiDDwIdle Network Bandwidth Determination - .netHow to set transaction isolation level for Postgres data source - javaCSS text selection? - cssCalculating Spam Probability - probabilityImageUrl in user control mode - asp.netHow can I combine code from a branch into a trunk? - mergeAll Articles