Index.cshtml
@Html.ActionLink("Create New", "Create", null, new { @class="btn btn-success"})
Site.css
BundleConfig.cs
bundles.Add(new ScriptBundle("~/bundles/bootstrap/script").Include(
"~/Scripts/bootstrap/js/*.js"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap/style").Include(
"~/Scripts/bootstrap/css/*.css"));
_Layout.cshtml
Reference:
http://twitter.github.io/bootstrap/base-css.html#buttons
沒有留言:
張貼留言