Skip to content

求left、right的宽度 #6

@laabcd

Description

@laabcd
<style> .container{ width:600px; /* width:400px; */ height:300px; display:flex; } .left{ flex:1 2 300px; } .right{ flex:2 1 200px; } </style> 原题是求left、right的宽度,但是把container的宽度改为400px,其他不变,left、right得出的结果是left:225,right:175,不明白这是什么原理,希望大佬解答一下!感谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions