如何在MVC 5项目中配置MetroUI [英] how to configure MetroUI in MVC 5 project

查看:77
本文介绍了如何在MVC 5项目中配置MetroUI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的MVC5项目中添加metro UI并且90%配置它但是当我尝试在文本框中添加datetimepicker时,如 http://metroui.org.ua/datepicker.html [ ^ ]

但这不行。



请帮帮我

谢谢提前

i am trying to add metro UI in my MVC5 project and 90% configure it but when i am trying to add datetimepicker in the text box like http://metroui.org.ua/datepicker.html[^]
but it is not work .

Please help me
thank you in advance

推荐答案

从nuget.Add @ Styles.Render(〜/ Content / metro-ui / css)安装Metro-UI-CSS软件包您的_Layout.cshtml视图。

在_Layout.cshtml视图中的jQuery之后添加@ Scripts.Render(〜/ bundles / metro-ui)。

您将必须删除默认的@ Styles.Render(〜/ bundles / css)以及

@ Scripts.Render(〜/ bundles / bootstrap)并添加你的地铁类例如。



要使用像日期时间选择器这样的小部件,你必须从metroui.org.ua下载zip文件,提取内容并将所有js文件复制到你的脚本中

metro -ui文件夹。



如果你删除了bundle / css和bundle / bootstrap你的脚手架项目,如创建和删除等等不再继承mvc模板扩展
Install the Metro-UI-CSS package from nuget.Add @Styles.Render("~/Content/metro-ui/css") in the of your _Layout.cshtml view.
Add @Scripts.Render("~/bundles/metro-ui") after jQuery in your _Layout.cshtml view.
You will have to delete the default @Styles.Render("~/bundles/css") as well as the
@Scripts.Render("~/bundles/bootstrap") and add the metro class in your body eg .

To use the widgets like datetime picker you will have to download the zip file from metroui.org.ua ,extract the contents and copy all the js files into your Scripts
metro -ui folder.

If you delete the bundles/css and bundles/bootstrap your scaffold items like create and delete and so forth wont inherit from the mvc template extensions any more


谢谢你的解决方案。但我已经配置了它。
thank you for ur solutions . but i am already configure it .


这篇关于如何在MVC 5项目中配置MetroUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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