可以在IE7中使用CSS Content Property吗? [英] Can CSS Content Property work in IE7?

查看:87
本文介绍了可以在IE7中使用CSS Content Property吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了CSS内容属性,该属性可以将文本添加到元素中.

I came across with CSS content property, which it is able to add text into element.

例如:

.class:after{
   content: "testing";
}

不幸的是,此CSS属性仅在仅使用!DOCTYPE的IE8中定义.

Unfortunately this CSS property only working in IE8 only with !DOCTYPE is defined.

是否存在使我们也可以在IE7中使用的解决方法?无需使用JavaScript或jQuery.

Is there anyway or workaround that we can make this to be working in IE7 too? without using JavaScript or jQuery.

推荐答案

否,IE7 不支持

唯一的机会是使用Javascript/Jquery.

Only chance is to use Javascript/Jquery.

这篇关于可以在IE7中使用CSS Content Property吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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