html5 - How do I use Paul Irish's Conditional comments in a SharePoint 2010 master page -



html5 - How do I use Paul Irish's Conditional comments in a SharePoint 2010 master page -

i want utilize paul irish's conditional comments boilerplate html template:

<!--[if lt ie 7 ]> <html lang="en" class="no-js ie6"> <![endif]--> <!--[if ie 7 ]> <html lang="en" class="no-js ie7"> <![endif]--> <!--[if ie 8 ]> <html lang="en" class="no-js ie8"> <![endif]--> <!--[if ie 9 ]> <html lang="en" class="no-js ie9"> <![endif]--> <!--[if (gt ie 9)|!(ie)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->

in sharepoint 2010 masterpage. have read 'conditional comments don’t work in sp2010'. (not sure means!) advice use:

<sharepoint:cssregistration name="foo.css" conditionalexpression="gte ie 7" runat="server" />

this allows me utilize conditional load specific stylesheet not utilize conditional html tag in way paul irish gaelic suggests. there way or can paste code biolerplate sharepoint masterpage?

i new sharepoint branding , coming across same problem. not asp developer understanding of solutions little tough.

what did take paul's conditional statements html tag , moved them body tag , seemed work perfect out having mess , sp code.

<!--[if lt ie 7]> <body class="no-js lt-ie9 lt-ie8 lt-ie7" scroll="no" onload="javascript:_spbodyonloadwrapper();"> <![endif]--> <!--[if ie 7]> <body class="no-js lt-ie9 lt-ie8" scroll="no" onload="javascript:_spbodyonloadwrapper();"> <![endif]--> <!--[if ie 8]> <body class="no-js lt-ie9" scroll="no" onload="javascript:_spbodyonloadwrapper();"> <![endif]--> <!--[if gt ie 8]><!--> <body class="no-js" scroll="no" onload="javascript:_spbodyonloadwrapper();"> <!--<![endif]-->

hope helps.

sharepoint html5 master-pages boilerplate

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -