角度材料md-chips md-autocomplete
问题描述:
当你添加多个芯片时,如何防止输入行扩展。我试过设置柔性和宽度,但它最终向下推输入线。我也尝试将其设置为绝对,但是这完全搞砸了对齐。这是发生了什么事的图片:角度材料md-chips md-autocomplete
Example of md-chip with autocomplete with input box acting weird.
答
尝试添加max-width
,max-height
和overflow-x: hidden
到md-chips-wrap
标签在你的CSS文件。
事情是这样的:
md-chips-wrap{
max-width: 250px;
max-height: 40px;
overflow-x: hidden;
}
让我知道,如果它是确定为您服务!
[如何在行中使用md-chips]可能的重复(http://stackoverflow.com/questions/35353358/how-to-use-md-chips-in-line) –
谢谢,我看到了这个例子。我无法在代码笔中看到视图。但它有点不同。我试图阻止输入线形式扩展 – Flash