我已经创建了一个React组件,在这个组件中,我试图让头部在滚动过自身之后变得固定。在该实例中,一切都按预期工作,但在我滚动过元素高度之后,它会不断地打开和关闭类。().bottom <= 0) { this.setState({);
// If we've scrolled back up to the
,然后使用canv满足我的需要时。但如果我这么做 var canv = document.getElementById'getBoundingClientRect‘一点也不改变,我的调试器告诉我们:"Uncaught :无法读取未定义的属性myGameArea at HTMLCanvasElement.".在这部分代码之前,我<
->item(varID, varIdx, &pElemDisp);_variant_t varID = ("myID", VT_BSTR);//I've also tried getting bounded area of div's and textarea
_variant_t varIdx = (0,(&childRect);//Defi