zhangxinxu / cssworld

《CSS世界》三部曲答疑反馈交流区
49 stars 2 forks source link

6.2.3 用例反馈 #19

Open zhyq0826 opened 2 years ago

zhyq0826 commented 2 years ago

https://demo.cssworld.cn/new/6/2-13.php 这个页面的例子我我把 item 中内容换成不包含任何英文的内容,item 的宽度就会变成 flex-basis 的宽度,和 width 好像就没有关系了,就不会像 6.2.3 中写的最小尺寸那样了

    <div class="container">
        <item>设置了设置了设置了同同时设置了</item>
        <item>设置了设置了设置了同同时设置了</item>
        <item>设置了设置了设置了同同时设置了</item>
    </div>

这是为什么

zhangxinxu commented 2 years ago

因为最小宽度受连续英文字符影响,参见第三章width尺寸那里的解释。