question 1. The project is a chat application, which needs to display the latest news in the chat window in real time. Using the scrollIntoView method
id div for bottom, I want to put it at the bottom. As long as it can be displayed, other chat messages can also be displayed on it
document.querySelector("-sharpbottom").scrollIntoView();
results all ieedge,chrome reported errors:
TypeError: Cannot read property "scrollIntoView" of null;//chromeTypeError: Unable to get property" scrollIntoView" of undefined or
null reference//ieedege