问问题
1546 次
1 回答
1
您不能将元素直接放在输入元素内(如@Ray Toal 所说),但您可以操纵 CSS。
#side-search-icon{ margin-left: -25px; }
<div id="side-menu" class="sidebar-nav span2">
<div class="row-fluid" id="search-container">
<div class="span1"></div>
<div class="span10">
<input class="search-input" type="text" placeholder="Search" />
<span id="side-search-icon"class="icon-search"></span>
</div>
<div class="span1"></div>
</div>
</div>
于 2013-05-19T01:00:10.883 回答