通过CEWP部件实现隐藏左侧功能导航区
在自定义sharePoint页面的时候,我们通常需要隐藏母板页中的左侧导航部件,然后再修改页面布局页面
设置我们想要的页面布局。在SharePoint 2010中我们可以通过使用内容编辑部件添加自定义的样式来覆盖
原有的样式以达到隐藏左侧导航的目的。
<style type=”text/css”> body #s4-leftpanel { display: none; } .s4-ca { margin-left: 0px; } </style>
<style type=”text/css”> body #s4-leftpanel { display: none; } .s4-ca { margin-left: 0px; } </style>
保存后立刻发现页面左侧导航被隐藏了,同理我们可以通过这种方法修改更多的内容。