asp.net - Add an IE 8 Only JavaScript to the Orchard CMS head element -


I want to add bootstrap-recommended content to Orchard CMS head . Generally, I will add the following.

  & lt ;! - HTML5 Symbian and Response.js HTML5 Elements and IE8 support for media queries - & gt; & Lt ;! - Warning: If you see the file through the file: Respond.js does not work: // - & gt; & Lt ;! - [If LT IE 9] & gt; & Lt; Script src = "https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js" & gt; & Lt; / Script & gt; & Lt; Script src = "https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js" & gt; & Lt; / Script & gt; & Lt; [Endif] - & gt;  

Is it IE8 just a javascript to add to head ?

  • If so, how can we add comments from the layout.cshtml view to Orchard CMS head ?
  • If not, then we can use the OrCard CMS head ?

@Script () with atHead () and UseContition () .

This is a quick way to add Bootstrap-recommended shimm, only for IE8, Orchard CMS head

  script. Include ("// oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js") .adhed (.) Usage ("LT ie 9"); Script.Include ("// oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js") .death () .UseCondition ("lt ie 9");  

It discusses @Script and mentions UseCondition in it.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -