::在IE7之前和::之后 [英] ::before and ::after on IE7

查看:49
本文介绍了::在IE7之前和::之后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



在IE7之前有没有人知道:: before和:: after的解决方案?

我知道它在IE7上不受支持但我需要一个解决方案

我尝试使用https://code.google.com/p/ie7-js/ [ ^ ]但仍然是同样的问题



i有此代码



Hello ,

Does any one know solution for ::before and ::after on IE7 ?
I know that it is not supported on IE7 but i need a solution
I try js like https://code.google.com/p/ie7-js/[^] but still same problem

i have this code

<li id="wp-admin-bar-comments"> 
<a class="ab-item" href="edit-comments.php" title="9 comments awaiting moderation"> 
<span class="ab-icon"> 
::before 
</span> 
<span id="ab-awaiting-mod" class="ab-label awaiting-mod pending-count count-9">9</span> 
</a>	
</li> 





及以下是代码::之前





And below is code for ::before

#wpadminbar #wp-admin-bar-comments .ab-icon:before 
{ 
Content : '\f101'; 
top : 3px; 
}





内容'\ f101'是指图标,它出现在除IE7之外的所有浏览器上

任何想法?



the content '\f101' is refer to an icon , it is appeared on all browser except IE7
any idea ?

推荐答案

为了让不受支持的功能适用于旧浏览器,您可能(并且可能只)使用他们称之为polyfill的功能...

最强大用于HTML和CSS功能的此类polyfill库可能是 Modernizr [ ^ ] ...
To get unsupported features work on older browsers you may (and may only) use what they call polyfill...
The most robust library of such polyfills for HTML and CSS features is probably Modernizr[^]...


这篇关于::在IE7之前和::之后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆