css中,类似这样的::-webkit-scrollbar东西,前面的::是什么意思?

设置对象被选择时的样式。 属伪类

<style>
p::-moz-selection{background:#000;color:#f00;}
p::selection{background:#000;color:#f00;}
</style>
<h1>选中下面的文字,看看它的颜色</h1>
<p>你选中这段文字后,看看它们的文本颜色和背景色,就能明白::的作用。</p>

转载:https://zhidao.baidu.com/question/460578479.html?fr=iks&word=%3A%3A-webkit-scrollbar%CA%C7%CA%B2%C3%B4%3F&ie=gbk

猜你喜欢

转载自blog.csdn.net/qq_38719039/article/details/81814021