环境:Visual Studio 2010   ASP.NET MVC3

手动添加: 下载地址:http://twitter.github.com/bootstrap/

一个js,两个css,两张图

js 文件:  •bootstrap.min.js  

CSS 文件:  •bootstrap.min.css  •bootstrap-responsive.min.css  

image 文件:  •glyphicons-halflings.png  •glyphicons-halflings-white.png


注:  •bootstrap.js  •bootstrap.css  •bootstrap.responsive.css 是带 min 关键字的文件的对应源码,min 是其压缩文件。我们在项目中只需要添加带 min 关键字的文件。

或者使用 NuGet Package Manager 加入到项目


应用:

_Layout.cshtml 中添加:

CSS:

<link href="@Url.Content("~/Content/bootstrap.min.css")" rel="stylesheet" type="text/css" /> 
<link href="@Url.Content("~/Content/bootstrap-responsive.min.css")" rel="stylesheet" type="text/css" />

JS:

<script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script> 
<script src="@Url.Content("~/Scripts/bootstrap.min.js")" type="text/javascript"></script>

相关文章:

  • 2022-12-23
  • 2022-01-09
  • 2021-11-11
  • 2021-11-23
  • 2021-05-19
  • 2021-08-26
  • 2022-12-23
猜你喜欢
  • 2021-12-03
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
  • 2021-12-14
相关资源
相似解决方案