Detailed explanation of CSS3 flex box automatic filling writing

Detailed explanation of CSS3 flex box automatic filling writing

This article mainly introduces the detailed explanation of the automatic filling writing method of CSS3 flex elastic box, and shares it with you, as follows:

<style type="text/css">
    .flexcontainer{
        width:100%;
        height: 100%;
        position: absolute;
        left:0px;
        top:0px;
        display: flex;
        flex-direction: column;
    }
    .flex1 {
        width: 100%;
        height: 8rem;
        float: left;
        background: #f00;
    
    }
    .flex2 {
        width: 100%;
        height: 4rem;
        flex:1;
        float: left;
        background: #000;
    }
   .flex3 {
        width: 100%;
        height: 7rem;
        float: left;
        background: #ccc;
    }    
</style>
<div class="flexcontainer">
    <div class="flex1"></div>
    <div class="flex2"></div>
    <div class="flex3"></div>
</div>

This is the end of this article on the detailed explanation of how to write automatic filling of CSS3 flex elastic box. For more relevant CSS3 flex automatic filling content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

<<:  Detailed explanation of tinyMCE usage and experience

>>:  Use IISMonitor to monitor web pages and automatically restart IIS

Recommend

js to make a simple calculator

This article shares the specific code of making a...

A brief discussion on the correct posture of Tomcat memory configuration

1. Background Although I have read many blogs or ...

Advertising skills in the Baidu Union environment (graphic tutorial)

Recently, students from the User Experience Team o...

Talk about implicit conversion in MySQL

In the course of work, you will encounter many ca...

mysql method to view the currently used configuration file my.cnf (recommended)

my.cnf is the configuration file loaded when MySQ...

How to allow remote access to open ports in Linux

1. Modify the firewall configuration file # vi /e...

Uninstalling MySQL database under Linux

How to uninstall MySQL database under Linux? The ...

Analysis of the reasons why Vue3 uses Proxy to implement data monitoring

Vue data two-way binding principle, but this meth...

Simple implementation of vue drag and drop

This article mainly introduces the simple impleme...

...

JavaScript Array Detailed Summary

Table of contents 1. Array Induction 1. Split a s...

Delegating Privileges in Linux Using Sudo

Introduction to sudo authority delegation su swit...

Detailed steps to install python3.7 on CentOS6.5

1. Download Python 3 wget https://www.python.org/...