When I read about CSS and HTML, I turn to the word pseudo-elements.
I did not find a good short explanation of what pseudo means. Can anyone explain this to me?
Intended or intended to be, but not quite so; false; not genuine:
- https://en.oxforddictionaries.com/definition/pseudo-
A pseudo-element is that which acts as an element, but is not an element.
psuedo-elements allow you to style specific parts of an element. Some examples of pseudo-elements:
::after
::before
.
:
.test { background-color: gray; } .test::after { content: ' some more text'; color: red }
<div class='test'> testing... </div>
.test
, , ::after, .
https://developer.mozilla.org/en/docs/Web/CSS/Pseudo-elements
, "".
: http://www.dictionary.com/browse/pseudo
- -DOM-, CSS, , DOM . node DOM. , , , Chrome Dev Tools, node.
Interestingly, some screen readers read pseudo-element content, while others do not.
Source: https://habr.com/ru/post/1664484/More articles:Avoiding spaces in column spaces - margin and padding set to 0 do not work - htmlHow to iterate over localStorage values - javascriptInvalid operand for asm 'i' inline constraint when writing x86_64 inline assembly - inline-assemblyObject not found for lapply data.table inside function - rAllow swagger request parameter to be an array of strings or integers - node.jsВ чем разница между константой и переменной в Ruby? - rubyBorder-Radius не работает в ссылке на Chrome - cssValueChanges перестает работать, как только возникает ошибка в Rx.Observable - javascripthow to get index of i element in pandas.Series - pythonC ++ / Quick random access run in a large file - c ++All Articles