DIVs Arrangement - HTML CSS

后端 未结 3 1725
孤城傲影
孤城傲影 2021-01-29 08:07

\"Arrangement\"

How can i construct above arrangement without using js ?

Thanks in advance !



        
3条回答
  •  猫巷女王i
    2021-01-29 08:52

    If the width of #div1 is fixed at 150px and #div3 is dynamic, then you can use :

    #div2 {
        width : calc(100% - 150px);
    }
    

    And if #div1 is also dynamic, then you need to use JS.

提交回复
热议问题