css 特殊的 IE7 标签

标签 css internet-explorer css-selectors

*html .... (IE6)
html > body ....(IE7/FF)

* html 是 IE6 的特殊标签。 IE7也有东西吗?我只需要 IE7 中的一些小的 CSS 细节。仅适用于没有 FF 的 IE7。

最佳答案

我已经将这个答案用于另一个问题,但它也适用于此:

I have a solution that I use only when I have to, after I build my html & css valid and working in most browsers, I do the occasional hack with this amazing piece of javascript from Rafael Lima. http://rafael.adm.br/css_browser_selector/

It keeps my CSS & HTML valid and clean, I know it's not the ideal solution, using javascript to fix hacks, but as long as your code is originally as close as possible (silly IE just breaks things sometimes) then moving something a few px with javascript isn't as big of a deal as some people think. Plus for time/cost reasons is a quick & easy fix.

关于css 特殊的 IE7 标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3807575/

相关文章:

Javascript DOMContentLoaded 事件未在 Internet Explorer 中触发

javascript - 用于 IE 的 AngularJS 调试工具,如 Batarang

python - 如何使用 selenium 和 Python 调用 send_keys()

html - 选择 DOM 中的一个元素,它不是兄弟元素,但在后面

javascript - 使用 html/js 的多配置文件 css 属性值

html - 在悬停 Bootstrap 4.2 上显示隐藏图像叠加

twitter-bootstrap - 移动问题,修改 Bootstrap 类或错误的媒体查询

html - IE 错误将内容向下和向右推送 - 如何解决?

css - 我可以合并 :nth-child() or :nth-of-type() with an arbitrary selector? 吗

javascript - 如何使用vue-scroll