我有下面的代码,其中有文字按钮, 我想添加到按钮也从引导图标(在文本的左侧)我应该怎么做?将引导图标添加到按钮
的图标是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