<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style>
::selection {
background:#C14835;
color:#E8E8E8;
}
::-moz-selection {
background:#C14835;
color:#E8E8E8;
}
::-webkit-selection {
background:#C14835;
color:#E8E8E8;
}
</style>
<body>
啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
</body>
</html>
原文地址《css改变选中文字的背景颜色,无需js jqeury》