https://github.com/ramsunvtech/jquery.iecss
jQuery Plugin for writting CSS for IE 6, 7, 8, 9 and Future IE Versions.
https://github.com/ramsunvtech/jquery.iecss
Last synced: over 1 year ago
JSON representation
jQuery Plugin for writting CSS for IE 6, 7, 8, 9 and Future IE Versions.
- Host: GitHub
- URL: https://github.com/ramsunvtech/jquery.iecss
- Owner: ramsunvtech
- Created: 2014-01-05T07:54:49.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-19T09:55:46.000Z (about 12 years ago)
- Last Synced: 2025-01-24T06:13:01.604Z (over 1 year ago)
- Language: JavaScript
- Size: 238 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jQuery.IEcss
============
This jQuery Plugin is helps to Update your Specific Styles for IE7, IE8, IE9 Browser and future IE browsers.
```javascript
$(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'));
});
```
How it Works?
This Plugin will read the browser information from the 'navigator.userAgent' object
Points to Remember
- 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
Options
- 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`.