html - SharePoint 网页自动调整大小
问题描述
我可以在编辑源中放入什么代码来设置 SharePoint 网站的宽度和高度?
<style type="text/css">
body {
width: 100%;
height: 100%;
}
</style>
上面的脚本不起作用。
解决方案
以下样式供您参考。
<style type="text/css">
body{
width: 100% !important;
height: 100% !important;
}
#s4-workspace{
width: 100% !important;
height: auto !important;
}
</style>
在 SharePoint 网站中,我建议您创建一个响应式母版页来满足您的要求。
请参阅此处的解决方案:SharePoint Branding - 响应式母版页
推荐阅读
- docker - 在 docker:dind 中运行 docker-compose
- python - 有没有办法在kivy中生成多个按钮?
- php - Symfony 框架无法使用自制安装的 php
- node.js - 在 Uppy 上使用 Instagram 登录后出现 401 未授权
- amazon-web-services - 使用 AWS CloudWatch Insights 按字段值聚合日志并绘制为多个系列
- date - 日期转换 (Excel 2016) - 数据透视表
- c# - 在 foreach 循环中将项目添加到 ObservableCollection 会影响上级列表中的整个项目?
- python-3.x - 在 python 3.6 上运行 tabula.read_pdf() 函数时获取“CalledProcessError ....返回非零退出状态 1”
- django - 如何从 django 的 background_tasks 导入背景。方法给出错误
- python - 属于一个类的变量定义