Pregunta

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.

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
scroll top