与Twitter的引导MVC 4页没有风格 [英] No Style in Pages of MVC 4 with Twitter Bootstrap
问题描述
在Windows 7中创建于2010年VS空白的MVC 4项目后,我也下安装引导软件包
After creating a blank MVC 4 project in VS 2010 on Windows 7, I did following to install Bootstrap packages
Install-Package twitter.bootstrap.mvc4
Install-Package twitter.bootstrap.mvc4.sample
当我跑项目,一切编译但是网页没有风格可言不像<一个href=\"http://lostechies.com/erichexter/2012/11/20/twitter-bootstrap-mvc4-the-template-nuget-package-for-asp-net-mvc4-projects/\"相对=nofollow> 建议包网站。这是正常的还是我需要做任何额外的东西吗?
When I ran the project, everything compiled but the pages had no style at all unlike what the package site suggested. Is this normal or did I need to do any additional thing?
推荐答案
它看起来并不对我来说,这就是空MVC4应用。看起来这是互联网应用的模板,就已经有一个默认的页面。看起来像默认页面被加载 - 而且没有任何HTML使用自举类
It doesn't look to me like that's the empty MVC4 application. It looks like that's the Internet application template, which will already have a default page. Looks like that default page is being loaded - and it doesn't have any HTML to use the bootstrap classes.
与空MVC4应用程序模板,它应该工作然后再次尝试(我只是尝试在VS2012和它的工作,至少。)
Try again with the Empty MVC4 application template, it should work then (I just tried it in VS2012 and it worked, at least.)
这篇关于与Twitter的引导MVC 4页没有风格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!