标签:style io os ar java strong for sp c
Sometimes, we need create a custom page layout, at the time, if we want to add some javascript and css code, how to do it? we cannot add the code in page layout file directly, the syetem will filter it and the code lost function. follow my steps to resolve it.
<!--MS:<asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server">--> <!--ME:</asp:ContentPlaceHolder>-->
<!-- MS:<style type="text/css" >--> // add your css code <!--ME: </style>-->
<script> _spBodyOnLoadFunctionNames.push("cutomFunction"); function cutomFunction(){ // ... } </script>
how to add Javascript and CSS in page layout with sharepoint 2013
标签:style io os ar java strong for sp c
原文地址:http://blog.csdn.net/tristan_dong/article/details/39695613