2016-09-27 42 views
0

這裏是使用像這樣的tagsinput。爲什麼bootstrap tagsinput在標籤中不顯示完整字符,並在結尾處顯示交叉符號?

<input type='text' class='form-control' data-role='tagsinput' /> 

但是,當我添加標籤它顯示的標籤正確如果如果字符從5超過標籤字符是小於或等於5。它不顯示完整的標籤文本也是在標籤的末尾沒有交叉的跡象。 以下是截圖

進入12345和結果: enter image description here

輸入的123456和結果:enter image description here

進入1234567和結果:enter image description here

進入1234567890和結果:enter image description here

如何我可以在標籤的結尾顯示標籤中的所有文字和十字標誌嗎?

回答

0

解決引導tagsinput標籤

.bootstrap-tagsinput .label{ 
width: auto; 
line-height:2; 
text-align: left; 
margin-bottom: 5px 
} 

這裏向其施加自定義CSS是截圖:

enter image description here

0

如果您檢查自定義CSS是影響<span class="tag label label-info">world<span data-role="remove"></span></span>

please check here