支持CSS的html元素列表:before和:after伪元素
问题描述:
我知道在空元素中不支持:before
和:之后的
伪元素,关于这些:
I know that the :before
, and :after
pseudo elements are not supported in empty elements, but what about these:
-
< select>
-
< option>
-
< textarea>
li>
-
< button>
<select>
<option>
<textarea>
<button>
A列表会很好!谢谢各位!
A list would be nice! Thanks guys!
答
我把每个HTML元素的列表放在一起。有些甚至不是合法的,他们使用...但它仍然似乎工作。
I put together a list of every HTML element. Some aren't even legal where they're used... but it still seems to work.
如果它用绿色字母表示工作正常,则表示支持该元素。
If it says "it works" in green letters, that element is supported.