<meta http-equiv="MSThemeCompatible" content="yes" />
Showing posts with label HTML Application. Show all posts
Showing posts with label HTML Application. Show all posts
Saturday, September 24, 2016
Enable Windows "Modern" Themed Form Elements in HTML Applications
HTML applications display form elements, e.g. buttons and checkboxes, in "Windows 98 look-and-feel", even if your Windows is using the modern XP/Vista-style themes. To enable WinXP/Vista-style form elements, add the following code:
Control Document Mode in an HTML Application
HTML applications, by default, display webpages in Compatibility View, which displays standards-mode content in IE7 Standards mode and quirks mode content in IE5 (Quirks) mode.
This means that you cannot use post-IE7 features such as JSON.stringify(), or expect standards-compliant CSS support, unless you add the following code to your HTML application(HTA):
<meta http-equiv="X-UA-Compatible" content="IE=9" />
Where IE=9 can be replaced with IE=8, IE=10, or even IE=edge to automatically choose the most up-to-date document mode supported by the version of Internet Explorer installed on your machine.
Sources:
Subscribe to:
Posts (Atom)