IE7loadsandparsesallstylesheetsintoaformthatExplorercanunderstand.YoucanthenusemostCSS2/CSS3selectorswithouthavingtoresorttoCSShacks.
Thelightweightscriptisasingle-lineinclusioninyourHTML/XMLdocument.Noalterationofyouroriginalmarkupisnecessary.NeitherdoyouhavetoalteryourCSS.
IE7providesMicrosoftInternetExplorerwithsupportforW3CstandardCSSandHTML:
supportsthefollowingCSSselectors:
namespace|selector
parent>child
adjacent+sibling
adjacent~sibling
[attr],[attr="value"],[attr~="value"]etc
.multiple.classes(fixesbug)
:hover,:active,:focus(forallelements)
:first-child,:last-child,only-child,nth-child,nth-last-child
:check,:disabled,:enabled
:root,:empty,:contains(),:not()
:before/:after/content:
:lang()
workswithbothHTMLandXMLdocuments
supportsimportedstylesheets
preservesthecascadeofthestylesheet
doesnotalterthedocumentstructure
doesnotrepeatedlyquerytheDOMtreeusingJavaScript
usespureCSStoenforcestylesheetrules
supportstheW3Cboxmodelinbothstandardsandquirksmode
supportsfixedpositioning(flickerfree)
supportsoverflow:visible
supportsmin/max-width/height
fixesbroken(X)HTMLelements(abbr,object)
standardiesformsbehavior
supportsPNGalphatransparency
lightweightscript(22K)
completelymodular(add/removefixes)
worksforMicrosoftInternetExplorer5+(Windowsonly)
IE7_0_9.zip下载