Angular material 角材料';s md select可能会溢出其容器
我创建了一个示例来说明这个问题。只需选择下拉列表中的所有选项,您将看到所选项目的显示将溢出容器。以下是导致问题的html供参考:Angular material 角材料';s md select可能会溢出其容器,angular-material,Angular Material,我创建了一个示例来说明这个问题。只需选择下拉列表中的所有选项,您将看到所选项目的显示将溢出容器。以下是导致问题的html供参考: <div><!-- this container needs some arbitrary max-width to be able to see the overflow --> <div layout="row"><!-- making this a layout="column" instead of row w
<div><!-- this container needs some arbitrary max-width to be able to see the overflow -->
<div layout="row"><!-- making this a layout="column" instead of row will fix it -->
<div layout="column"><!-- putting max-width:100% here will fix it -->
<md-input-container>
<md-select ng-model="test" multiple>
<!-- md-options -->
</md-select>
</md-input-container>
</div>
</div>
</div>
我不明白它为什么会溢出,所以我不太清楚这两个修复程序为什么会起作用。有人能解释一下为什么这不符合书面要求,或者提出一个更好的方法来避免这个问题吗
更新:我发现这是github站点上的一个问题,但是没有很好的解决方案。
更新2:我发现最大宽度解决方案在IE11中没有帮助