标签: javascript css selection
如何使用JavaScript选择::selection元素才能应用样式规则?
::selection
document.querySelector("::selection").style.backgroundColor = "red"; Uncaught TypeError: Cannot read property 'style' of null(…)