编辑Sharepoint网站页面的CSS [英] Editing CSS for a Sharepoint Site Page
问题描述
你好.我的组织刚刚授予我对Sharepoint 365的访问权限.我创建了网站页面,并使用文件查看器显示了OneDrive上存在的共享excel文档.
Hello. My organization just gave me access to Sharepoint 365. I created a Site Page and using file viewer to display a shared excel document that exists on OneDrive.
不幸的是,该文件仅扩展到页面的2/3rds.在浏览CSS时,我发现.CanvasZone元素设置为1280px的最大宽度.我想一起删除最大宽度.我可以使用浏览器的 开发工具,效果很好,但是我找不到使用共享点设计器的方法.
Unfortunately, the the file only extends about 2/3rds of the page. In looking through the CSS I found that the .CanvasZone element is set to a max width of 1280px. I would like to remove the max width all together. I can edit the page locally using my browser's dev tools and it works just fine, but I'm unable to find a way to do so using the sharepoint designer.
有没有办法我只能操纵此页面?我无权访问该组织的服务器样式表.
Is there a way where I can manipulate this page only? I do not have access to the organization's server style sheets.
推荐答案
您好,
将CSS和母版页更新到网站页面应遵循的步骤.
Steps to be followed to update the CSS and Master Page to site page.
- 通过浏览器打开站点页面,使用IE中的F12开发人员工具,找到CanvasZone元素并将其删除,如下图所示.
- 删除该元素后,保存此CSS文件.
- 现在通过附加到您的母版页上的SPD获取母版页的副本.并将保存的CSS文件引用到该文件并根据需要重命名母版页.
- 现在打开您的站点页面,在其中添加excel文档并附加自定义母版页并保存.
这篇关于编辑Sharepoint网站页面的CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!