0
我想這html
轉換:Twitterbootstrap輸入組,剃刀語法
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon">
<input type="checkbox">
</span>
<input type="text" class="form-control">
</div><!-- /input-group -->
</div><!-- /.col-lg-6 -->
進入Razor
語法是這樣的:
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon">
@Html.CheckBoxFor(model => model.Negotiable, new { @class = "form-control", @checked = "checked" })
</span>
@Html.TextBoxFor(model => model.Price, new { id = "price", @class = "form-control", })
</div><!-- /input-group -->
</div><!-- /.col-lg-6 -->
不過這是結果我得到:
在左邊你看到一個ver應該顯示一個複選框的灰色東西。
我錯過了什麼?
從剃鬚刀代碼呈現的HTML是什麼? – TheVillageIdiot 2014-10-19 10:30:48
嗨,我正在處理這個問題,但似乎科林的答案解決了它。感謝您的輸入! – Quoter 2014-10-19 11:44:57