影响IE8浏览器的条件代码是什么?
我的意思不是嵌入到 html 中的条件注释。我指的是可以直接放入css文件中的条件代码。比如:
*+html .myClass {} is for IE7
* html .myClass {} is for IE 6
IE 8 的是什么?
I don't mean conditional comments embedded into the html. I am refering to the conditional code that can be put directly into the css file. Like:
*+html .myClass {} is for IE7
* html .myClass {} is for IE 6
what is the one for IE 8?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你想达到什么目的?您不必为 IE8 修改 CSS。我认为 IE8 没有条件代码,因此如果您绝对需要 IE8 的样式表,您可能必须转向条件注释。
What are you trying to achieve? You shouldn't have to hack up your CSS for IE8. I don't think there is a conditional code for IE8 so if you absolutely need to have a style sheet for IE8, you might have to turn to conditional comment.
HTML 标记的条件注释,允许您在 CSS 中定位 .ie8:
这就是 html5boilerplate。
另外,请注意 Paul 的博客文章<的最后几段< /a>.我同意你应该尝试在不针对特定浏览器的情况下使其工作,这是可能的。
Conditional comment for the HTML tag, which will allow you to target .ie8 in your CSS:
That is what's currently being used in html5boilerplate.
Also, be weary of the last few paragraphs in Paul's blog post. I agree that you should try to make it work without targeting specific browsers, it at all possible.
根据此网站,您可以执行以下操作:
According to this site, you can do the following: