Home > front end >  The console error always read a property 'style' of null
The console error always read a property 'style' of null

Time:10-29

 
For (var I=1; i <=this. ParentContainer. ChildElementCount; I++) {
If (I===UILayout. SelectVideoIndex) {
This. Style. Border="1 px solid # 00 ff00";
} else {
Enclosing parentContainer..childnodes. Item (I). The style.css. Border="1 px solid black";
}
}


So there is something wrong with this code

CodePudding user response:

Always read the property 'style' of null at HTMLCanvasElement. LayoutScreens. Video. The onclick


This is an error prompt

CodePudding user response:

For (var I=0; i If (I===UILayout. SelectVideoIndex - 1) {
This. Style. Border="1 px solid # 00 ff00";
} else {
Enclosing parentContainer..childnodes. Item (I). The style.css. Border="1 px solid black";
}
}

CodePudding user response:

This morning to restart the service problem solved, should not the matter of the code
  • Related