2013年6月24日 星期一

Change a Link to become bootstrap button in MVC 4 template

image

 

Index.cshtml

image

@Html.ActionLink("Create New", "Create", null, new { @class="btn btn-success"})

 

Site.css

image

 

BundleConfig.cs

image

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


image


 


Reference:


http://twitter.github.io/bootstrap/base-css.html#buttons


image

沒有留言:

張貼留言