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.
精彩评论