Since IE7 and IE8 don't support the double-colon notation for pseudo-elements (e.g. ::after
or ::first-letter
), and since modern browsers support the single-colon notation (e.g. :after
) for backwards compatibility, should I use solely the single-colon notation and when IE8's market share drops to a negligible level go back and find/replace in my code base? Or should I include both:
.foo:after,
.foo::after { /*styles*/ }
Using double alone seems silly if I care about IE8 users (the poor dears).
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…