This jQuery Plugin is helps to Update your Specific Styles for IE7, IE8, IE9 Browser and future IE browsers.
$(document).ready(function () {
/* Apply Multiple CSS Properties */
$('p').IEcss('lt:8', {
'background': 'yellow'
});
/* Apply Single CSS Property */
$('p').IEcss('lt:8', 'backgroundColor', 'red');
/* Get the Current CSS Property Value */
alert($('p').IEcss('lt:8', 'backgroundColor'));
});
This Plugin will read the browser information from the 'navigator.userAgent' object
- The First Arguement of IE condition is mandatory and soon it will be removed and you can add the IE Condition as a global value in future version
- IE condition
- You can add the folloing conditons
- lt:8 (lesser than)
- lte:8 (lesser than and equal to)
- gt:8 (greater than)
- gte:8 (greater than and equal to)
- gte:8 (equal to)
- CSS Style Object / Property Name
- You can declare the `Style Object` / Only `Property Name`.
- Property Value
- You can add the `Property Value` if your second arguement is `Property Name`.