How do you work around IE not supporting :after?

前端 未结 8 1659
無奈伤痛
無奈伤痛 2021-01-21 21:07

I\'ve got a bunch of lists

  • Item 1
  • Item 2
  • Item 3
  • &l
8条回答
  •  梦毁少年i
    2021-01-21 21:28

    1. Use the IE7.js hack to add after pseudoelement support.
    2. Use conditional comments to add to the markup to simulate that effect or to remove some of the existing style to make it easier to read without dividers -- eg, let the list items stack in a stylesheet in a conditional comment
    3. Allow IE6 to degrade gracefully by rearranging the style so this doesn't happen, even if it looks different in other browsers.

提交回复
热议问题