transition不是可继承的。我又看了一下,应该是这句: The :before and :after pseudo-elements elements interact with other boxes, such as run-in boxes, as if they were real elements inserted just inside their associated element. :before :after伪元素其实相当与在其所依附元素最前面(后)面插入了一个普通的元素。就是说,其实这两个伪元素其实是div的子元素, 和你在div里面直接写 span 之类的没有区别。 https://www.w3.org/TR/2009/CR...
transition
不是可继承的。我又看了一下,应该是这句:
:before
:after
伪元素其实相当与在其所依附元素最前面(后)面插入了一个普通的元素。就是说,其实这两个伪元素其实是div
的子元素, 和你在div里面直接写 span 之类的没有区别。https://www.w3.org/TR/2009/CR...