Question

Lets say I have a new form that and I want to have a tag somewhere like this:

<style>
#id{
  background:red;
}
</style>

at the moment when I do this my SharePoint gives me an error saying Only Content controls are allowed directly in a content page that contains Content controls.

Était-ce utile?

La solution

You could find if there is a <SharePoint:StyleBlock runat="server"></SharePoint:StyleBlock> in your new form.You could add css code in it.

My test code:

<SharePoint:StyleBlock runat="server">   
nobr{    
color:red
}
</SharePoint:StyleBlock>

Test result: enter image description here

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top