0
사용자가 입력 필드에 태그를 만들 수 있도록 Jquery "tagsinput"을 사용하고 있습니다.
"tagsinput"세로를 표시하는 방법은 무엇입니까?
인라인 대신 세로 태그를 표시하고 싶습니다.
또한 "1300x1300"과 같이 입력하면 입력이 너비 100 %를 커버하지 않는 것처럼 보입니다.
어떻게 해결할 수 있습니까?
HTML
<table>
<tr>
<td class="oppningarTd">
<input type="text" class="oppningar" data-role="tagsinput" multiple="true" />
</td>
</tr>
</table>
CSS @ CBroe의 의견에
.bootstrap-tagsinput {
background-color: #fff;
border: 1px;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
color: #555;
vertical-align: middle;
width: 100%;
cursor: text;
white-space: pre; //Just trying something
}
td.oppningarTd {
border: 1px solid black;
background: white;
text-align: center;
width: 200px !important;
}
input.oppningar {
width: 100% !important;
text-align: center;
}
뿐인
https://jsfiddle.net/Lh4jy9d4/151/
스팬 요소를 '표시 : 차단'으로 설정하거나 부동 상태로 만들고 지 웁니다. (그런 다음 공백을 다시 제거하고 여백/패딩으로 재생하고 싶을 수도 있습니다.) – CBroe
@CBroe 스팬 요소는 무엇입니까? –
이 스크립트가 실제 태그를 표시하는 데 사용하는 태그입니다. 브라우저의 DOM 속성을 사용하고 사용 된 요소를 살펴보십시오. – CBroe