11 html javascript css css3 reactjs
我使用scrollIntoView但仍然没有指向第二个任何想法???
我使用window.scrollTo(0,0)但仍然没有指向第二个任何想法???
.television .chromecast .sun .sunItem > .bulb {
overflow: hidden;
transition: transform .5s, max-height .5s;
transform: scaleY(0);
box-sizing: border-box;
max-height: 0;
transform-origin: center top;
}
.television .chromecast .sun .sunItem.selected > .bulb {
transform: scaleY(1);
max-height: 100%;
}
Run Code Online (Sandbox Code Playgroud)
小智 5
我们需要在select函数上正确调用
onSelect() {
this.props.onSelect(this.props.id);
this.focusDiv();
}
Run Code Online (Sandbox Code Playgroud)