Question 1: When the same Element is operated twice by appendChild() , there will be only one entity, the first operation is invalid, and the last one is valid.
So do the appendChild() operation on Element.clone ( true) .
Problem 2: CSS dynamic rendering
So learn about events and load CSS after JS has finished loading.
Question 3: Binding functions.