CSS3代码如下:
/* SELECTION
----------------- */
::-moz-selection {
background
:
#f00533
;
color
:
white
;
text-shadow
:
none
;
}
::selection {
background
:
#A33248
;
color
:
white
;
text-shadow
:
none
;
}
The ::selection selector is supported in IE9+, Opera, Google Chrome and Safari.
Firefox supports an alternative, the ::-moz-selection.