When I add a footer into the popup dynamically, the footer is inside the popup div
in DOM, but in the Google Chrome page, I see the footer is on the bottom of the page.
Do I need some special attributes for the footer div
when I add it into a popup?
You just need to tell jQM to enhance the new content after appending it to the footer. eg:
$("#popupDialog").append('<div data-role="footer"><h1>Popup Footer</h1></div>').enhanceWithin();
Here is a DEMO
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.