引导3模板更改mvc5 [英] bootstrap 3 template change mvc5

查看:76
本文介绍了引导3模板更改mvc5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习的MVC / asp.net在Visual Studio 2013,想尝试在第一web应用我的手。唯一的事情是我不喜欢默认的超大屏幕模板/主题,它自带的。我去getbootstrap.org,我喜欢旋转木马或断然模板/主题。

I am learning mvc/asp.net in visual studio 2013 and want to try my hands on a first web application. Only thing is I don't like the default jumbotron template/theme that it comes with. I went to getbootstrap.org and I like the carousel or flatly templates/themes.

我一直在淘净任何教程或资源来帮助我,但没有成功更改默认主题vs2013。所以我想知道如果有人能帮助我得到这条底线。只是如何从vs20xx交换模板/主题出来,让我高兴我可以创建不同的模板/主题。

I have been scouring the net for any tutorial or resource to help me change the default theme in vs2013 with no success. So I wanted to know if anyone can help me get to the bottom of this. Just a how to swap templates/themes out from vs20xx so that I can create different templates/themes as I please.

推荐答案

有很多网站会为您提供免费的引导模板,的http:// bootswatch。 COM / ,结账如阿梅利亚;下载和重命名主题,并到您的内容文件夹,复制主题 Amelia.css [您可以命名它,只要你想在 APP_Start.BundleConfig.cs
更新 RegisterBundles()方法:

There are many sites will provide you free Bootstrap templates, as http://bootswatch.com/, checkout e.g. amelia; download and rename theme and copy theme Amelia.css [you can name it as you want] in to your Content folder, in APP_Start.BundleConfig.cs Update RegisterBundles() method as:

bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css", "~/Content/Amelia.css"));

请记住,您的主题名称最后例如 Amelia.css bundle.add
文件夹中运行项目,你会看到渲染的主题。

Remember to have your theme name last e.g. Amelia.css in bundle.add. Folder Run project and you will see rendered theme.

这篇关于引导3模板更改mvc5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆