
CSS Conditional Comments on MXAE
Conditional comments make it easy for developers to take advantage of the enhanced features offered by Microsoft Internet Explorer 5 and later versions, while writing pages that downgrade gracefully in less-capable browsers or display correctly in browsers other than Windows Internet Explorer. Conditional comments are the preferred means of differentiating Cascading Style Sheets (CSS) rules intended for specific versions of Internet Explorer.
Below is the sample of writing IE Conditional Comments for IE7. More about Conditional Comment, please go to: http://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx
<!--[if IE 7]><link href="style.css" media="all" rel="stylesheet" type="text/css" /> <![endif]--> |
You can’t write Conditional Comments purely in MXAE because it will provide error. The problem is tag for IE Conditional Comments same like tsl tag. To make sure it run on MXAE you need to apply string replace. Below is string replaced for IE Conditional Comments on tsl tag.
<!--[general echo="<!\-\-[if IE 7]><link href=\"style.css\" media=\"all\" rel=\"stylesheet\" type=\"text/css\" /> <![endif]\-\->" function="str_replace,'\-\-','--',#self#"]--> |
MXAE Release News
MXAE 2.7.5 Released ![]() |
![]() |
Tips & Tricks
The "cache" attribute for listing and template ![]() |
![]() |