css ::selection 选择文本改变样式

.p1::selection{
background: red;
color: #fff;
}

原文地址:https://www.cnblogs.com/ajanuw/p/8057311.html