This methodThe page layout is incorrect when you add a list item. Therefore, we recommend that you use a modified version,Here
The previous project encountered a fixed page width in Sharepoint.
So sum up, pay attention to the point, to use built-in CSS in the "s4-workspace", in order to achieve the effect,
<Div id = "s4-workspace" class = "s4-nosetwidth">
========================================================== ========================================================== =
A detailed example is as follows:
The fixed page width is 990px, and the entire page is centered;
Add CSS in HTML:
<Body scroll = "no" onLoad = "If (typeof (_ spbodyonloadwrapper )! = 'Undefined') _ spbodyonloadwrapper (); "class =" v4master"Style = "width: 990px; margin-left: auto; margin-Right: auto ;">
<Div id = "s4-workspace"Class = "s4-nosetwidth">
Outside of from content:
<DivStyle = "width: 990px ;">
<Asp: contentplaceholder id = "placeholderutilitycontent" runat = "server"/>
<SharePoint: warnonunsupportedbrowsers runat = "server"/>
</Div>
move the vertical scroll bar to the rightmost side of the browser. Add CSS to the master page.