:IE6中的内容之前和之后 [英] :before and :after content in IE6

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

问题描述

问题示例:

http: //www.key-horse.com/fftst-content.html

我无法在网上找到解决方法;我甚至找不到问题的报告

。但是我记得前一段时间这个问题已经讨论了这个问题。


我定义了两个类,.star2和.star3,其中包含内容:


< style type =" text / css">

.star2:before {content:" **"}

.star3:在{content:" ***"}之前

< / style>


这个效果很好FF,但在IE 6.0中根本不起作用。这是IE 6.0中的一个

错误吗?如果是的话,有什么合理的解决方法,如果有的话?


谢谢!


- fredo

Problem example:

http://www.key-horse.com/fftst-content.html

I can''t find a workaround for my problem on the web; I can''t even find
a report of the problem. But I remember that the problem was discussed
in this group some time ago.

I define two classes, .star2 and .star3, that include content thus:

<style type="text/css">
.star2:before {content: "** "}
.star3:before {content: "***"}
</style>

This works great in FF, but does not work at all in IE 6.0. Is this a
bug in IE 6.0? If so, what''s a reasonable workaround, if any?

Thanks!

-- fredo

推荐答案

fredo写道:
fredo wrote:
问题例子:

http://www.key-horse.com/fftst-content.html

我无法在网上找到解决方法;我甚至无法找到问题的报告。但我记得前一段时间在这个小组中讨论过这个问题。

我定义了两个类,.star2和.star3,其中包含内容:
< style type =" text / css">
。star2:before {content:" **"}
。star3:before {content:" ***" }
< / style>

这在FF中很有用,但在IE 6.0中根本不起作用。这是IE 6.0中的一个错误吗?如果是这样,什么是合理的解决方法,如果有的话?
Problem example:

http://www.key-horse.com/fftst-content.html

I can''t find a workaround for my problem on the web; I can''t even find
a report of the problem. But I remember that the problem was discussed
in this group some time ago.

I define two classes, .star2 and .star3, that include content thus:

<style type="text/css">
.star2:before {content: "** "}
.star3:before {content: "***"}
</style>

This works great in FF, but does not work at all in IE 6.0. Is this a
bug in IE 6.0? If so, what''s a reasonable workaround, if any?




不确定我是否会将其称为错误。 IE根本就不支持它。

我所知道的唯一解决方法就是将它写在HTML

而不是CSS中。


-

Els http:// locusmeus .com /

Sonhos vem。 Sonhos v?o。 Orestoébritfeito。

- Renato Russo -

现在播放:David Bowie - 让我们共度夜晚



Not sure if I would call it a bug. IE just doesn''t support it at all.
The only workaround I know of is just simply writing it in the HTML
instead of in the CSS.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -
Now playing: David Bowie - Let''s Spend The Night Together

Els:
不确定我是否会将其称为错误。 IE根本就不支持它。
我所知道的唯一解决方法就是简单地将它写在HTML中而不是CSS中。
Not sure if I would call it a bug. IE just doesn''t support it at all.
The only workaround I know of is just simply writing it in the HTML
instead of in the CSS.



Dean Edward的IE7支持IIRC。 @import url(" disclaimer / js");



Dean Edward''s IE7 supports it IIRC. @import url("disclaimer/js");


>不确定我是否会称它为bug。 IE根本就不支持它。


谢谢。


我会称这样的遗漏是第一个水的错误。如果我需要来自

IE的支持,它会在实践中呈现一个非常有用的CSS功能。如果我想避开js;或者如果我想提供最小的html

文件。所有有价值的目标,imo。

IETF要求提供标准的参考实现。在浏览器中使用CSS实现也不会发生类似的事情。

啊,后见之明!


- fredo

> Not sure if I would call it a bug. IE just doesn''t support it at all.

Thank you.

I would call such an omission a bug of the first water. It renders a
useful CSS feature forever unusable in practice if I want support from
IE; if I want to avoid js; or if I want to serve the smallest html
files. All worthwhile goals, imo.

The IETF asks for reference implementations of a proposed standard. Too
bad something similar couldn''t happen with CSS realization in browsers.
Ah, hindsight!

-- fredo


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

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