简体   繁体   中英

how to move Javascript created DIV to bottom of page

I have swagger ui HTML page. there is generating HTML tags and divs with javascript

so I want to move this whole description div to the bottom of the page. but there are 13 000 lines of javascript how can I find out what needs to change?

在此处输入图像描述

在此处输入图像描述

If I am understanding right, you don't know how to find what to change because there are so many lines. You should use Chrome Developer Tools.

You must right click > inspect the part you want to move to the bottom of the page. Then you can search (CTRL + F) for a spesific part of the code and find what you need.

Here is a more cleaner explanation.

https://nira.com/chrome-developer-tools/#:~:text=From%20the%20Chrome%20menu%3A,web%20page%20you're%20on .

Finally you can make the change you need.

if you want it to be fixed at bottom of the page You can simply add this css

body {
   padding-bottom:52px;
}

 .description{
   position:fixed;
   bottom:0;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM