我有2個輸入框,一旦點擊就展開。代碼看起來像Twitter Bootstrap圖標擴展輸入框
<form class="search" method="post" action="">
<input class="icon-plus-sign" id="search-box-add" type="text">
<input class="icon-minus-sign" id="search-box-del" type="text">
</form>
.search label{
font-size:0.75em;
font-weight:bold;
color:#333;
text-indent:-9999em;
display:block;
float:left;
}
.search input[type="text"]{
text-indent:1px;
padding:0 0 0 22px;
width:0;
height:22px;
border:1px solid #ccc;
color:#000;
-webkit-transition:width 0.5s ease-in-out;
-moz-transition:width 0.5s ease-in-out;
cursor:pointer;
}
.search input[type="text"]:focus{
width:200px;
outline:none;
cursor:text;
}
http://jsfiddle.net/ye0k18jj/40/
的問題我已經是,
- 當框擴展它顯示了一個以上的圖標
- 我不能讓圖標更大
任何想法,
雖然說明是好的...代碼是更好的。 –