search for the destination element to scroll toĬonst destination = document. In the Scrolling list, click the text-scrolling option that you want. if there are no anchors found, don't run the script Right-click the control for which you want to set a text-scrolling option, and then click Control Properties on the shortcut menu. The node we want to scroll to, somewhere on the pageĬonst anchors = document.querySelectorAll('.js-anchor') HTML: //anchor tag that appears multiple times on the page Go to the Border tab In the Style box, click to select a line style. In the opening Format Cells dialog box, please do as follows. Click in the Text Box then look at the Shape Format tab for options to change the border/outline, fill and other settings. Click the arrow next to the Border > More Borders button on the Home tab. After scrolling, I remove the created elements again. Change ‘Move with text’ to ‘Fix position on page’. I've also had the issue of the scrollIntoView scrolling a bit past the element, so I created a script (native javascript) that prepends an element to the destination, positioned it a bit to the top with css and scrolled to that one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |