fix style.font property.
fix IE7 style.font property access.

add ie check.
fix code style.
Merge pull request #1922 from brn/fix-ie7-error

IE7 cause error when accessing the HTMLElement.style.font property.