Is it possible to write IE 8 specific styles for few elements without using js or jquery? I have a requirement in which line-height is used , this works fine firefox and chrome where as in IE8 i want to reduce 2 px of line-height can i do this in style class ?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- Is TWebBrowser dependant on IE version?
Use this inside of head tag:
Yes, you can use Paul-Irish's way of targetting IE Browsers:
Or the new one:
So for just targetting IE 8, you can use:
Css conditional comments will help you do this
Have a look at http://www.quirksmode.org/css/condcom.html for more info.