JavaScript不适用于SharePoint新体验。 [英] JavaScript not working for SharePoint new experience.
本文介绍了JavaScript不适用于SharePoint新体验。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
JavaScript不适用于SharePoint新体验。
JavaScript not working for SharePoint new experience.
推荐答案
Hi,
如果您使用的是脚本编辑器更改脚本以在加载框架时运行。
If you are using script editor Change the script to run when the frame is loaded.
<script type="text/javascript">
document.getElementById("myframe").onload = function()
{
var x = document.getElementById("myframe");
var height = height=document.body.clientHeight;
document.getElementById("myframe").height = parseInt(height-document.getElementById("myframe").offsetTop-8)/1.9+"px";
}
</script>
这篇关于JavaScript不适用于SharePoint新体验。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文