我是这样使用 tagsinput 的。
<input type='text' class='form-control' data-role='tagsinput' />
但是当我添加标签时,如果标签字符小于或等于 5,它会正确显示标签。如果字符超过 5,它不会显示完整的标签文本,标签末尾也没有叉号。 以下是截图
如何在标签末尾显示标签中的所有文本和叉号?
最佳答案
解决了在 bootstrap 标签输入标签上应用自定义 css
.bootstrap-tagsinput .label{
width: auto;
line-height:2;
text-align: left;
margin-bottom: 5px
}
截图如下:
关于html - 为什么 bootstrap tagsinput 不显示标签中的完整字符和末尾的叉号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39715113/