我在我的項目上使用purecss.io,當試圖將標籤樣式應用於LabelFor元素時遇到問題。我知道它沒有采用任何html屬性,但是我無法在包裝所有字母的時候採取這種風格。purecss.io和包裝LabelFor
我已經試過以下行並停止只是短暫編輯模板,但會如果沒有更簡單的方法。
<label>@Html.LabelFor(model => model.keyId)</label>
<div class="pure-form label">@Html.LabelFor(model => model.keyId)</div>
編輯:對不起,它包裹在純「純形式對齊」。
<div class="pure-form pure-form-aligned">
<fieldset>
<div class="pure-control-group">
<div class="pure-form ">@Html.LabelFor(model => model.keyId)</div>
這是否包裹在一個使用純形式類的窗體中? – Gjohn 2014-09-22 14:29:32