Some things to consider:
IE9 has support for media-query, but you need to make sure to be in standards mode, namely, your <doctype>
have to be correct, and the proper care with the html taken. Note that IE9 does not respect media-queries inside <iframe>
.
As for IE8, there is no use media-query. The solution would be for a conditional comment, as the code below, and load a specific javascript to resolve the subject.
It is worth remembering that you practically will not have IE8 on mobile devices, so maybe a simplified CSS within the conditional comment already solve.
Here is the conditional comment:
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" media="all" href="estilo_ie8.css"/>
... e/ou ponha seu JS aqui...
<![endif]-->
Worth a look at Respond.js for this purpose.
worth the considerations, I will use Respond.js and check how it looks.
– HeltonSS