我有下面的代碼,其中有文字按鈕, 我想添加到按鈕也從引導圖標(在文本的左側)我應該怎麼做?將引導圖標添加到按鈕
的圖標是glyphicon glyphicon加
<div style="margin-top: 20px">
<p>
@Html.ActionLink("New", "Create",
null new { @class = "Button", @style = "float:right" })
</p>
</div>
<br />
<style type="text/css">
.CreateButton {
background: blue
;
color: white;
padding: 4px 10px 4px 10px;
height: 30px;
width: 60px;
}
</style>
<br />
這看起來不是很完整。代碼頂部的這個類是什麼? –
@ StenPelzer -I've更新帖子請檢查並讓我知道如果有些遺漏... –
您發佈的代碼不是html。它是什麼? – tjati