当您在intro.js中添加一个大工具提示时,它会通过执行以下操作来计算是否有空间将工具提示放在顶部、底部、左侧、右侧:/**autodetermineposition*///Checkforspacebelowif(targetElementRect.bottom+tooltipHeight+tooltipHeight>windowSize.height){_removeEntry(possiblePositions,"bottom");}//Checkforspaceaboveif(targetElementRect.top-tooltipHeightwindowSize.widt