Perfectly solves the problem that the off-canvas side slide of the mui frame cannot be rolled out when the excess part is hidden. muioff-canvas

Source: Internet
Author: User

Perfectly solves the problem that the off-canvas side slide of the mui frame cannot be rolled out when the excess part is hidden. muioff-canvas

One disadvantage of the off-canvas slide in the mui frame is that the scroll bar cannot appear, because it is mainly used to set a pattern similar to the qq interface, so it cannot be rolled. How can this problem be solved?

Solution:

1. Add the id in the content container and control it through JS

<Div class = "mui-content mui-scroll-wrapper" id = "scr1">

JS Section

<Script> mui ('# scr1'). scroll (); </script>

Ii. Create a subpage:

Mui. init ({subpages: [{url: 'index.html ', // the id of the page to be introduced: 'index.html', // The style: {top: '50px ', // bottom: '0px '} extrax {}// additional extension parameters}]} at the top of the page);

You can write content on the index.html page, and a scroll bar appears.

The above Article perfectly solves the problem that the off-canvas side slide of the mui framework cannot be rolled out. It is all the content that I shared with you. I hope you can give it a reference, we also hope that you can support the customer's home.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.