Javascript-questions about flex Layout

Source: Internet
Author: User
Set the body element as follows: {code...} It has two sub-elements: {code...} so that the flex element can adapt to the height. It also contains two sub-elements: {code...} if the height of the flex element is 800 pixels, how can we fill the height of the two elements with the flex element? Set the body element as follows:

Display: flex; flex-direction: column;

It has two child elements:

In this way, the flex element can adapt to the height. It also contains two child elements:

If the height of the flex element is 800 pixels, how can we fill the height of the two elements with the flex element?

Reply content:

Set the body element as follows:

Display: flex; flex-direction: column;

It has two child elements:

In this way, the flex element can adapt to the height. It also contains two child elements:

If the height of the flex element is 800 pixels, how can we fill the height of the two elements with the flex element?

Set flex to an elastic box, which is vertical.

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.