Home > front end >  Recently, do you have a problem, no element is specified to initialize PerfectScrollbar
Recently, do you have a problem, no element is specified to initialize PerfectScrollbar

Time:09-26

Details as follows, you recently doing, looking for a new template, and then use the code before, and found that in the new project before import the part of the static resources, is an error,
No element is specified to initialize PerfectScrollbar
For big help!

CodePudding user response:

To scroll plug-in initialization, mounted to the dom
 

# demo {
width: 100%;
Height: 500 px;
overflow: hidden;
position: relative;
}

New PerfectScrollbar (' # demo);