// IE9+、Opera、Google Chrome 以及 Safari 中支持
::selection{
color:#ff0000;
}
// firefox
::-moz-selection{
color:#ff0000;
}
W3School:http://www.w3school.com.cn/c***ef/selector_selection.asp
转载于:https://blog.51cto.com/oceanho/1591333
// IE9+、Opera、Google Chrome 以及 Safari 中支持
::selection{
color:#ff0000;
}
// firefox
::-moz-selection{
color:#ff0000;
}
W3School:http://www.w3school.com.cn/c***ef/selector_selection.asp
转载于:https://blog.51cto.com/oceanho/1591333