如何解决IE6,7,8不支持before:after伪元素_html/css_WEB-ITnose
来源:懂视网
责编:小采
时间:2020-11-27 15:47:21
如何解决IE6,7,8不支持before:after伪元素_html/css_WEB-ITnose
如何解决IE6,7,8不支持before:after伪元素_html/css_WEB-ITnose:我有个效果在火狐中是正常的,但在IE下不行。代码如下: 无标题文档/*Now the CSS*/* {margin: 0; padding: 0;}.tree ul { padding-top: 20px; position: relative; transition: all 0.5s; -webkit-transiti
导读如何解决IE6,7,8不支持before:after伪元素_html/css_WEB-ITnose:我有个效果在火狐中是正常的,但在IE下不行。代码如下: 无标题文档/*Now the CSS*/* {margin: 0; padding: 0;}.tree ul { padding-top: 20px; position: relative; transition: all 0.5s; -webkit-transiti

我有个效果在火狐中是正常的,但在IE下不行。代码如下:
无标题文档
Parent Child Grand Child Child Grand Child Grand Child Great Grand Child Great Grand Child Great Grand Child Grand Child 回复讨论(解决方案)
浏览器不支持,只能采用脚本实现了
比如
http://api.jquery.com/after/
http://api.jquery.com/before/
另外参考
http://stackoverflow.com/questions/4181884/after-and-before-css-pseudo-elements-hack-for-ie-7
IE6 7 8 不支持last-child!求解
这个样式,在css3里面经常配合使用,
ie下本来就不兼容。
没什么好的解决办法。
如果想兼容ie,最好别用这个,换一种方法。
如何解决IE6,7,8不支持before:after伪元素_html/css_WEB-ITnose
如何解决IE6,7,8不支持before:after伪元素_html/css_WEB-ITnose:我有个效果在火狐中是正常的,但在IE下不行。代码如下: 无标题文档/*Now the CSS*/* {margin: 0; padding: 0;}.tree ul { padding-top: 20px; position: relative; transition: all 0.5s; -webkit-transiti