这些是什么CSS黑客? [英] What CSS hacks are these?
本文介绍了这些是什么CSS黑客?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在CSS声明代码中发现了这一点我现在部分负责:
I found this in a CSS declaration code I am now partially responsible for:
margin: 0 0 0 10px;
*+margin: 4px 0 0 10px;
margin: 3px 0 0 10px\0/;
... * +
code> \0 / 是我正在查找的。
... the *+
and \0/
are what I'm looking at in particular. What are the hacks being employed here?
有没有一个标准的地方,我可以看看当前和过去的CSS黑客,也列出了它们的适用性和有用性?我希望能够一目了然地看到一个目的hack和简单的代码错误之间的区别。
And is there a standard place I can look at to look at current and past CSS hacks that also lists their applicability and usefulness? I want to be able at a glance to see a difference between an on-purpose hack and simple code errors.
推荐答案
margin: 3px 0 0 10px\0/;
这是一个CSS黑客来指定Internet Explorer 8。
That one is a CSS hack to specify Internet Explorer 8.
*+margin: 4px 0 0 10px;
这是用于Internet Explorer 7的
This one is for Internet Explorer 7
这篇关于这些是什么CSS黑客?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文