Javascript 页面完全加载后,嵌入式Outlook 365日历自动滚动到日历部分
日历中有某种东西迫使它自动滚动到嵌入日历的页面部分。如何防止这种情况发生?有什么东西可以添加到iframe或css中吗?或者有一个简单的javascript解决方案 任何想法都值得赞赏Javascript 页面完全加载后,嵌入式Outlook 365日历自动滚动到日历部分,javascript,html,outlook,calendar,embed,Javascript,Html,Outlook,Calendar,Embed,日历中有某种东西迫使它自动滚动到嵌入日历的页面部分。如何防止这种情况发生?有什么东西可以添加到iframe或css中吗?或者有一个简单的javascript解决方案 任何想法都值得赞赏 <div class="iframe-container"> <iframe src="https://outlook.office365.com/owa/calendar/18c7a310a7a542c0863b9c2fa1c19bdf/calendar.html" allowfullsc
<div class="iframe-container">
<iframe src="https://outlook.office365.com/owa/calendar/18c7a310a7a542c0863b9c2fa1c19bdf/calendar.html" allowfullscreen></iframe>
</div>
向iframe添加style=“display:none;”onload=“this.style.display='block';”
修复了该问题
<div class="iframe-container">
<iframe style="display: none;" onload="this.style.display='block';" src="https://outlook.office365.com/owa/calendar/18c7a310a7a542c0863b9c2fa1c19bdf/calendar.html" allowfullscreen></iframe>
</div>