开发者

What is purpose of "::" before a "-webkit" css declaration

Recently I read a CSS declaration that started with ::. Can you tell me its purpose?

Example:

::-webkit-scrollbar {
  width:0;开发者_如何学运维
}

It is used here for example.


That's a CSS pseudo-element.
The :: is part of the selector, just like : is part of the :focus selector.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜